Package org.alfresco.repo.rendition2
Interface TransformClient
-
- All Known Implementing Classes:
LegacyLocalTransformClient,SwitchingTransformClient
public interface TransformClientRequest rendition transforms.- Author:
- adavis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckSupported(NodeRef sourceNodeRef, RenditionDefinition2 renditionDefinition, String sourceMimetype, long size, String contentUrl)Checks the transformation required for the rendition is supported.voidtransform(NodeRef sourceNodeRef, RenditionDefinition2 renditionDefinition, String user, int sourceContentHashCode)Requests an asynchronous transform and the subsequent linkage of that transform as a rendition.
-
-
-
Method Detail
-
checkSupported
void checkSupported(NodeRef sourceNodeRef, RenditionDefinition2 renditionDefinition, String sourceMimetype, long size, 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:
UnsupportedOperationException- if the transform is not supported.
-
transform
void transform(NodeRef sourceNodeRef, RenditionDefinition2 renditionDefinition, 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
-
-