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,
java.lang.String mimetype,
TransformationOptions transformationOptions,
java.lang.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,
java.lang.String mimetype,
TransformationOptions transformationOptions,
java.lang.String name,
ThumbnailParentAssociationDetails assocDetails) |
java.util.Map |
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,
java.lang.String thumbnailName)
Gets the thumbnail for a given content property with a given name.
|
ThumbnailRegistry |
getThumbnailRegistry()
Gets the thumbnail registry
|
java.util.List |
getThumbnails(org.alfresco.service.cmr.repository.NodeRef node,
org.alfresco.service.namespace.QName contentProperty,
java.lang.String mimetype,
TransformationOptions options)
Gets a list of thumbnail nodes for a given content property that match the provided mimetype and
transformation options.
|
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,
java.lang.String mimetype,
TransformationOptions transformationOptions,
java.lang.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)org.alfresco.service.cmr.thumnail.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,
java.lang.String mimetype,
TransformationOptions transformationOptions,
java.lang.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,
java.lang.String thumbnailName)
node - node referencecontentProperty - content property namethumbnailName - thumbnail name@Auditable(parameters={"node", "contentProperty", "mimetype", "options"})
java.util.List getThumbnails(org.alfresco.service.cmr.repository.NodeRef node,
org.alfresco.service.namespace.QName contentProperty,
java.lang.String mimetype,
TransformationOptions options)
node - node referencecontentProperty - content property namemimetype - mimetypeoptions - transformation options@Auditable(parameters="sourceNode") java.util.Map 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.Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.