public interface ThumbnailService
| Modifier and Type | Method and Description |
|---|---|
NodeRef |
createThumbnail(NodeRef node,
QName contentProperty,
String mimetype,
TransformationOptions transformationOptions,
String name)
Creates a new thumbnail for the given node and content property.
|
NodeRef |
createThumbnail(NodeRef node,
QName contentProperty,
String mimetype,
TransformationOptions transformationOptions,
String name,
ThumbnailParentAssociationDetails assocDetails) |
Map<String,FailedThumbnailInfo> |
getFailedThumbnails(NodeRef sourceNode)
This method returns a
Map of failed thumbnails for the specified source node. |
NodeRef |
getThumbnailByName(NodeRef node,
QName contentProperty,
String thumbnailName)
Gets the thumbnail for a given content property with a given name.
|
ThumbnailRegistry |
getThumbnailRegistry()
Gets the thumbnail registry
|
List<NodeRef> |
getThumbnails(NodeRef node,
QName contentProperty,
String mimetype,
TransformationOptions options)
Gets a list of thumbnail nodes for a given content property that match the provided mimetype and
transformation options.
|
boolean |
getThumbnailsEnabled()
This method indicates whether thumbnail creation via this service has been globally enabled or disabled.
|
void |
setThumbnailsEnabled(boolean thumbnailsEnabled)
This method enables or disables the creation of all thumbnails by this service.
|
void |
updateThumbnail(NodeRef thumbnail,
TransformationOptions transformationOptions)
Updates the content of a thumbnail.
|
@NotAuditable ThumbnailRegistry getThumbnailRegistry()
ThumbnailRegistry thumbnail registry@Auditable(parameters={"node","contentProperty","mimetype","transformationOptions","name"}) NodeRef createThumbnail(NodeRef node, QName contentProperty, String mimetype, TransformationOptions transformationOptions, String name)
node - the source content nodecontentProperty - the content propertymimetype - the thumbnail mimetypetransformationOptions - the thumbnail transformation optionsname - the name of the thumbnail (optional, pass null for unnamed thumbnail)ThumbnailDefinition@Auditable(parameters={"node","contentProperty","mimetype","transformationOptions","name","assocDetails"}) NodeRef createThumbnail(NodeRef node, QName contentProperty, String mimetype, TransformationOptions transformationOptions, String name, ThumbnailParentAssociationDetails assocDetails)
node - the source content nodecontentProperty - the content propertymimetype - the thumbnail mimetypetransformationOptions - the thumbnail transformation optionsname - the name of the thumbnail (optional, pass null for unnamed thumbnail)assocDetails - the thumbnail parent association detailsIf parent association details are specified then the thumbnail is created as a child of the specified parent and linked
via a non-primary association to the original content node.@Auditable(parameters={"thumbnail","transformationOptions"}) void updateThumbnail(NodeRef thumbnail, TransformationOptions transformationOptions)
thumbnail - the thumbnail nodetransformationOptions - the transformation options used when updating the thumbnail@Auditable(parameters={"node","contentProperty","thumbnailName"}) NodeRef getThumbnailByName(NodeRef node, QName contentProperty, String thumbnailName)
node - node referencecontentProperty - content property namethumbnailName - thumbnail name@Auditable(parameters={"node","contentProperty","mimetype","options"}) List<NodeRef> getThumbnails(NodeRef node, QName contentProperty, String mimetype, TransformationOptions options)
node - node referencecontentProperty - content property namemimetype - mimetypeoptions - transformation options@Auditable(parameters="sourceNode") Map<String,FailedThumbnailInfo> getFailedThumbnails(NodeRef sourceNode)
Map of failed thumbnails for the specified source node.
The map is keyed by thumbnail definition name
and the values are the failed thumbnails.sourceNode - the node whose thumbnails are to be checked.void setThumbnailsEnabled(boolean thumbnailsEnabled)
thumbnailsEnabled - true to enable all thumbnail creation (the default setting), or false to disable.boolean getThumbnailsEnabled()
Copyright © 2005–2020 Alfresco Software. All rights reserved.