Package org.alfresco.repo.rendition2
Interface TransformClient
-
- All Known Implementing Classes:
LegacyTransformClient,LocalTransformClient,SwitchingTransformClient
public interface TransformClientRequest rendition transforms.- Author:
- adavis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckSupported(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, RenditionDefinition2 renditionDefinition, java.lang.String sourceMimetype, long size, java.lang.String contentUrl)Checks the transformation required for the rendition is supported.voidtransform(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, RenditionDefinition2 renditionDefinition, java.lang.String user, int sourceContentHashCode)Requests an asynchronous transform and the subsequent linkage of that transform as a rendition.
-
-
-
Method Detail
-
checkSupported
void checkSupported(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, RenditionDefinition2 renditionDefinition, java.lang.String sourceMimetype, long size, java.lang.String contentUrl)Checks the transformation required for the rendition is supported.- Parameters:
sourceNodeRef- the source noderenditionDefinition- which rendition to performsourceMimetype- the mometype of the sourcesize- the size in bytes of the sourcecontentUrl- the url of the source (used in debug).- Throws:
java.lang.UnsupportedOperationException- if the transform is not supported.
-
transform
void transform(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, RenditionDefinition2 renditionDefinition, java.lang.String user, int sourceContentHashCode)Requests an asynchronous transform and the subsequent linkage of that transform as a rendition.- Parameters:
sourceNodeRef- the source noderenditionDefinition- which rendition to performuser- that requested the transform.sourceContentHashCode- the hash code of the source node's content URL. Used to check the transform result
-
-