public interface ThumbnailService
Modifier and Type | Method and Description |
---|---|
org.alfresco.service.cmr.repository.NodeRef |
createThumbnail(org.alfresco.service.cmr.repository.NodeRef node,
org.alfresco.service.namespace.QName contentProperty,
String mimetype,
TransformationOptions transformationOptions,
String name)
Creates a new thumbnail for the given node and content property.
|
org.alfresco.service.cmr.repository.NodeRef |
createThumbnail(org.alfresco.service.cmr.repository.NodeRef node,
org.alfresco.service.namespace.QName contentProperty,
String mimetype,
TransformationOptions transformationOptions,
String name,
ThumbnailParentAssociationDetails assocDetails) |
Map<String,FailedThumbnailInfo> |
getFailedThumbnails(org.alfresco.service.cmr.repository.NodeRef sourceNode)
This method returns a
Map of failed thumbnails for the specified source node. |
org.alfresco.service.cmr.repository.NodeRef |
getThumbnailByName(org.alfresco.service.cmr.repository.NodeRef node,
org.alfresco.service.namespace.QName contentProperty,
String thumbnailName)
Gets the thumbnail for a given content property with a given name.
|
ThumbnailRegistry |
getThumbnailRegistry()
Gets the thumbnail registry
|
List<org.alfresco.service.cmr.repository.NodeRef> |
getThumbnails(org.alfresco.service.cmr.repository.NodeRef node,
org.alfresco.service.namespace.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(org.alfresco.service.cmr.repository.NodeRef thumbnail,
TransformationOptions transformationOptions)
Updates the content of a thumbnail.
|
@NotAuditable ThumbnailRegistry getThumbnailRegistry()
ThumbnailRegistry
thumbnail registry@Auditable(parameters={"node","contentProperty","mimetype","transformationOptions","name"}) org.alfresco.service.cmr.repository.NodeRef createThumbnail(org.alfresco.service.cmr.repository.NodeRef node, org.alfresco.service.namespace.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"}) org.alfresco.service.cmr.repository.NodeRef createThumbnail(org.alfresco.service.cmr.repository.NodeRef node, org.alfresco.service.namespace.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(org.alfresco.service.cmr.repository.NodeRef thumbnail, TransformationOptions transformationOptions)
thumbnail
- the thumbnail nodetransformationOptions
- the transformation options used when updating the thumbnail@Auditable(parameters={"node","contentProperty","thumbnailName"}) org.alfresco.service.cmr.repository.NodeRef getThumbnailByName(org.alfresco.service.cmr.repository.NodeRef node, org.alfresco.service.namespace.QName contentProperty, String thumbnailName)
node
- node referencecontentProperty
- content property namethumbnailName
- thumbnail name@Auditable(parameters={"node","contentProperty","mimetype","options"}) List<org.alfresco.service.cmr.repository.NodeRef> getThumbnails(org.alfresco.service.cmr.repository.NodeRef node, org.alfresco.service.namespace.QName contentProperty, String mimetype, TransformationOptions options)
node
- node referencecontentProperty
- content property namemimetype
- mimetypeoptions
- transformation options@Auditable(parameters="sourceNode") Map<String,FailedThumbnailInfo> getFailedThumbnails(org.alfresco.service.cmr.repository.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–2017 Alfresco Software. All rights reserved.