|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThumbnailService
Thumbnail Service API
Method Summary | |
---|---|
NodeRef |
createThumbnail(NodeRef node,
QName contentProperty,
java.lang.String mimetype,
TransformationOptions transformationOptions,
java.lang.String name)
Creates a new thumbnail for the given node and content property. |
NodeRef |
createThumbnail(NodeRef node,
QName contentProperty,
java.lang.String mimetype,
TransformationOptions transformationOptions,
java.lang.String name,
ThumbnailParentAssociationDetails assocDetails)
|
NodeRef |
getThumbnailByName(NodeRef node,
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(NodeRef node,
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(NodeRef thumbnail,
TransformationOptions transformationOptions)
Updates the content of a thumbnail. |
Method Detail |
---|
@NotAuditable ThumbnailRegistry getThumbnailRegistry()
ThumbnailRegistry
thumbnail registry@Auditable(key=ARG_0, parameters={"node", "contentProperty", "mimetype", "transformationOptions", "name"}) NodeRef createThumbnail(NodeRef node, 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(key=ARG_0, parameters={"node", "contentProperty", "mimetype", "transformationOptions", "name", "assocDetails"}) NodeRef createThumbnail(NodeRef node, 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 details
If 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(key=ARG_0, parameters={"thumbnail", "transformationOptions"}) void updateThumbnail(NodeRef thumbnail, TransformationOptions transformationOptions)
thumbnail
- the thumbnail nodetransformationOptions
- the transformation options used when updating the thumbnail@Auditable(key=ARG_0, parameters={"node", "contentProperty", "thumbnailName"}) NodeRef getThumbnailByName(NodeRef node, QName contentProperty, java.lang.String thumbnailName)
node
- node referencecontentProperty
- content property namethumbnailName
- thumbnail name
@Auditable(key=ARG_0, parameters={"node", "contentProperty", "mimetype", "options"}) java.util.List getThumbnails(NodeRef node, QName contentProperty, java.lang.String mimetype, TransformationOptions options)
node
- node referencecontentProperty
- content property namemimetype
- mimetypeoptions
- transformation options
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |