public interface RenditionService2
RenditionDefinition2s and may be registered and looked by the associated
RenditionDefinitionRegistry2.
Unlike the original RenditionService this service, it:
| Modifier and Type | Method and Description |
|---|---|
org.alfresco.service.cmr.repository.ChildAssociationRef |
getRenditionByName(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
String renditionName)
This method gets the rendition of the
sourceNodeRef identified by its name. |
org.alfresco.service.cmr.repository.ChildAssociationRef |
getRenditionByName(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
String renditionName,
long maxMillis)
This method gets the rendition of the
sourceNodeRef identified by its name, but blocks up to
maxMillis if it does not exist. |
RenditionDefinitionRegistry2 |
getRenditionDefinitionRegistry2() |
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getRenditions(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef)
This method gets all the renditions of the
sourceNodeRef. |
boolean |
isEnabled()
Indicates if renditions are enabled.
|
void |
render(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
String renditionName)
This method asynchronously renders content as specified by the
renditionName. |
RenditionDefinitionRegistry2 getRenditionDefinitionRegistry2()
RenditionDefinitionRegistry2 being used by the service.@NotAuditable
void render(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
String renditionName)
renditionName. The content to be
rendered is provided by sourceNodeRef.sourceNodeRef - the node from which the content is retrieved.renditionName - the rendition to be performed.@NotAuditable List<org.alfresco.service.cmr.repository.ChildAssociationRef> getRenditions(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef)
sourceNodeRef.ChildAssociationRefs which link the sourceNodeRef to the renditions.@NotAuditable
org.alfresco.service.cmr.repository.ChildAssociationRef getRenditionByName(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
String renditionName)
sourceNodeRef identified by its name.sourceNodeRef - the source node for the renditionsrenditionName - the renditionName used to identify a rendition.ChildAssociationRef which links the source node to the
rendition or null if there is no rendition or it is not up to date.@NotAuditable
org.alfresco.service.cmr.repository.ChildAssociationRef getRenditionByName(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
String renditionName,
long maxMillis)
throws InterruptedException
sourceNodeRef identified by its name, but blocks up to
maxMillis if it does not exist. If possible the non blocking getRenditionByName(NodeRef, String)
version of this method should be used.sourceNodeRef - the source node for the renditionsrenditionName - the renditionName used to identify a rendition.maxMillis - the maximum abount of time to wait for the rendition to appear. Must be in the range of
0 to 30000.ChildAssociationRef which links the source node to the
rendition or null if there is no rendition or it is not up to date.InterruptedException - if interrupted.boolean isEnabled()
system.thumbnail.generate value.Copyright © 2005–2018 Alfresco Software. All rights reserved.