|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.thumbnail.ThumbnailServiceImpl
public class ThumbnailServiceImpl
Constructor Summary | |
---|---|
ThumbnailServiceImpl()
|
Method Summary | |
---|---|
NodeRef |
createThumbnail(NodeRef node,
QName contentProperty,
java.lang.String mimetype,
TransformationOptions transformationOptions,
java.lang.String thumbnailName)
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 thumbnailName,
ThumbnailParentAssociationDetails assocDetails)
|
NodeRef |
getThumbnailByName(NodeRef node,
QName contentProperty,
java.lang.String thumbnailName)
Gets the thumbnail for a given content property with a given name. |
NodeRef |
getThumbnailNode(ChildAssociationRef thumbnailRef)
This method returns the NodeRef for the thumbnail, using the ChildAssociationRef that links the sourceNode to its associated Thumbnail node. |
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 |
setNodeService(NodeService nodeService)
Set the node service |
void |
setRenditionService(RenditionService renditionService)
Set the rendition service. |
void |
setThumbnailRegistry(ThumbnailRegistry thumbnailRegistry)
Set thumbnail registry |
void |
updateThumbnail(NodeRef thumbnail,
TransformationOptions transformationOptions)
Updates the content of a thumbnail. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThumbnailServiceImpl()
Method Detail |
---|
public void setRenditionService(RenditionService renditionService)
renditionService
- public void setNodeService(NodeService nodeService)
nodeService
- node servicepublic void setThumbnailRegistry(ThumbnailRegistry thumbnailRegistry)
thumbnailRegistry
- thumbnail registrypublic ThumbnailRegistry getThumbnailRegistry()
ThumbnailService
getThumbnailRegistry
in interface ThumbnailService
ThumbnailRegistry
thumbnail registryThumbnailService.getThumbnailRegistry()
public NodeRef createThumbnail(NodeRef node, QName contentProperty, java.lang.String mimetype, TransformationOptions transformationOptions, java.lang.String thumbnailName)
ThumbnailService
createThumbnail
in interface ThumbnailService
node
- the source content nodecontentProperty
- the content propertymimetype
- the thumbnail mimetypetransformationOptions
- the thumbnail transformation optionsthumbnailName
- the name of the thumbnail (optional, pass null for unnamed thumbnail)
ThumbnailService.createThumbnail(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.namespace.QName, java.lang.String, org.alfresco.service.cmr.repository.TransformationOptions, java.lang.String)
public NodeRef createThumbnail(NodeRef node, QName contentProperty, java.lang.String mimetype, TransformationOptions transformationOptions, java.lang.String thumbnailName, ThumbnailParentAssociationDetails assocDetails)
createThumbnail
in interface ThumbnailService
node
- the source content nodecontentProperty
- the content propertymimetype
- the thumbnail mimetypetransformationOptions
- the thumbnail transformation optionsthumbnailName
- the name of the thumbnail (optional, pass null for unnamed thumbnail)assocDetails
- the thumbnail parent association details
ThumbnailService.createThumbnail(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.namespace.QName, java.lang.String, org.alfresco.service.cmr.repository.TransformationOptions, java.lang.String, org.alfresco.service.cmr.thumbnail.ThumbnailParentAssociationDetails)
public NodeRef getThumbnailNode(ChildAssociationRef thumbnailRef)
thumbnailRef
- the ChildAssociationRef containing the child NodeRef.
public void updateThumbnail(NodeRef thumbnail, TransformationOptions transformationOptions)
ThumbnailService
updateThumbnail
in interface ThumbnailService
thumbnail
- the thumbnail nodetransformationOptions
- the transformation options used when updating the thumbnailThumbnailService.updateThumbnail(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.cmr.repository.TransformationOptions)
public NodeRef getThumbnailByName(NodeRef node, QName contentProperty, java.lang.String thumbnailName)
ThumbnailService
getThumbnailByName
in interface ThumbnailService
node
- node referencecontentProperty
- content property namethumbnailName
- thumbnail name
ThumbnailService.getThumbnailByName(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.namespace.QName, java.lang.String)
public java.util.List getThumbnails(NodeRef node, QName contentProperty, java.lang.String mimetype, TransformationOptions options)
ThumbnailService
getThumbnails
in interface ThumbnailService
node
- node referencecontentProperty
- content property namemimetype
- mimetypeoptions
- transformation options
ThumbnailService.getThumbnails(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.namespace.QName, java.lang.String, org.alfresco.service.cmr.repository.TransformationOptions)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |