public class ThumbnailDefinition extends Object
Constructor and Description |
---|
ThumbnailDefinition()
Default constructor
|
ThumbnailDefinition(String destinationMimetype,
TransformationOptions options)
Constructor
|
ThumbnailDefinition(String mimetype,
TransformationOptions options,
String thumbnailName)
Constructor.
|
ThumbnailDefinition(String mimetype,
TransformationOptions options,
String thumbnailName,
String placeHolderResourcePath)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
FailureHandlingOptions |
getFailureHandlingOptions()
Get the
failure options . |
String |
getMimeAwarePlaceHolderResourcePath() |
String |
getMimetype()
Get the destination mimetype
|
String |
getName()
Gets the name of the thumbnail
|
String |
getPlaceHolderResourcePath() |
String |
getRunAs() |
ThumbnailRegistry |
getThumbnailRegistry()
Gets the thumbnail registry
|
TransformationOptions |
getTransformationOptions()
Get the transformation options
|
void |
register()
Registers the thumbnail definition with the thumbnail registry.
|
void |
setFailureHandlingOptions(FailureHandlingOptions failureOptions)
Set the
failure options . |
void |
setMimeAwarePlaceHolderResourcePath(String mimeAwarePlaceHolderResourcePath)
This method sets the mime-aware placeholder resource path template.
|
void |
setMimetype(String mimetype)
Set the destination mimetype
|
void |
setName(String thumbnailName)
Sets the name of the thumbnail
|
void |
setPlaceHolderResourcePath(String placeHolderResourcePath)
This method sets the placeholder resource path.
|
void |
setRunAs(String runAs) |
void |
setThumbnailRegistry(ThumbnailRegistry thumbnailRegistry)
Sets the thumbnail registry
|
void |
setTransformationOptions(TransformationOptions options)
Set the transformation options
|
public ThumbnailDefinition()
public ThumbnailDefinition(String destinationMimetype, TransformationOptions options)
destinationMimetype
- Stringoptions
- TransformationOptionspublic ThumbnailDefinition(String mimetype, TransformationOptions options, String thumbnailName)
thumbnailName
- the name of the thumbnail, can be nullpublic ThumbnailDefinition(String mimetype, TransformationOptions options, String thumbnailName, String placeHolderResourcePath)
mimetype
- Stringoptions
- TransformationOptionsthumbnailName
- StringplaceHolderResourcePath
- Stringpublic void setMimetype(String mimetype)
mimetype
- the destination minetypepublic String getMimetype()
public void setTransformationOptions(TransformationOptions options)
options
- the transformation optionspublic TransformationOptions getTransformationOptions()
public void setFailureHandlingOptions(FailureHandlingOptions failureOptions)
failure options
.failureOptions
- the failure options.public FailureHandlingOptions getFailureHandlingOptions()
failure options
.public void setName(String thumbnailName)
thumbnailName
- the thumbnail namepublic String getName()
public void setRunAs(String runAs)
public String getRunAs()
public void setPlaceHolderResourcePath(String placeHolderResourcePath)
placeHolderResourcePath
- Stringpublic String getPlaceHolderResourcePath()
public void setMimeAwarePlaceHolderResourcePath(String mimeAwarePlaceHolderResourcePath)
mimeAwarePlaceHolderResourcePath
- Stringpublic String getMimeAwarePlaceHolderResourcePath()
public ThumbnailRegistry getThumbnailRegistry()
public void setThumbnailRegistry(ThumbnailRegistry thumbnailRegistry)
thumbnailRegistry
- ThumbnailRegistrypublic void register()
setThumbnailRegistry(ThumbnailRegistry)
Copyright © 2005–2017 Alfresco Software. All rights reserved.