Package org.alfresco.repo.rendition2
Class SwitchingTransformClient
- java.lang.Object
-
- org.alfresco.repo.rendition2.SwitchingTransformClient
-
- All Implemented Interfaces:
TransformClient
public class SwitchingTransformClient extends java.lang.Object implements TransformClient
A transform client that falls back between different implementations if not supported.- Author:
- adavis
-
-
Constructor Summary
Constructors Constructor Description SwitchingTransformClient(TransformClient primary, TransformClient secondary)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
SwitchingTransformClient
public SwitchingTransformClient(TransformClient primary, TransformClient secondary)
-
-
Method Detail
-
checkSupported
public void checkSupported(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, RenditionDefinition2 renditionDefinition, java.lang.String sourceMimetype, long size, java.lang.String contentUrl)Description copied from interface:TransformClientChecks the transformation required for the rendition is supported.- Specified by:
checkSupportedin interfaceTransformClient- 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).
-
transform
public void transform(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, RenditionDefinition2 renditionDefinition, java.lang.String user, int sourceContentHashCode)Description copied from interface:TransformClientRequests an asynchronous transform and the subsequent linkage of that transform as a rendition.- Specified by:
transformin interfaceTransformClient- 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
-
-