Thumbanil API: suport for placeholder thumbnails added and queueing of thumbnails for creation on get

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9434 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2008-06-10 10:27:35 +00:00
parent 5e60154bf5
commit 1fec726056
6 changed files with 146 additions and 24 deletions

View File

@@ -24,6 +24,8 @@
*/
package org.alfresco.repo.thumbnail;
import java.lang.reflect.Constructor;
import org.alfresco.service.cmr.repository.TransformationOptions;
/**
@@ -40,7 +42,10 @@ public class ThumbnailDetails
private String mimetype;
/** Transformation options */
private TransformationOptions options;
private TransformationOptions options;
/** Path to placeholder thumbnail */
private String placeHolderResourcePath;
/**
* Default constructor
@@ -72,6 +77,20 @@ public class ThumbnailDetails
this.name= thumbnailName;
}
/**
* Constructor. Specify the place holder thumbnail path.
*
* @param mimetype
* @param options
* @param thumbnailName
* @param placeHolderResourcePath
*/
public ThumbnailDetails(String mimetype, TransformationOptions options, String thumbnailName, String placeHolderResourcePath)
{
this(mimetype, options, thumbnailName);
this.placeHolderResourcePath = placeHolderResourcePath;
}
/**
* Set the destination mimetype
*
@@ -131,4 +150,22 @@ public class ThumbnailDetails
{
return name;
}
/**
*
* @param placeHolderResourcePath
*/
public void setPlaceHolderResourcePath(String placeHolderResourcePath)
{
this.placeHolderResourcePath = placeHolderResourcePath;
}
/**
*
* @return
*/
public String getPlaceHolderResourcePath()
{
return placeHolderResourcePath;
}
}