mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user