Package org.alfresco.repo.rendition2
Class LocalTransformClient
- java.lang.Object
-
- org.alfresco.repo.rendition2.LocalTransformClient
-
- All Implemented Interfaces:
TransformClient,org.springframework.beans.factory.InitializingBean
public class LocalTransformClient extends java.lang.Object implements TransformClient, org.springframework.beans.factory.InitializingBean
Requests rendition transforms take place using transforms available on the local machine (based onLocalTransform. The transform and consumption of the resulting content is linked into a single operation that will take place at some point in the future on the local machine.- Author:
- adavis
-
-
Constructor Summary
Constructors Constructor Description LocalTransformClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()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.voidsetContentService(ContentService contentService)voidsetExecutorService(java.util.concurrent.ExecutorService executorService)voidsetLocalTransformServiceRegistry(LocalTransformServiceRegistry localTransformServiceRegistry)voidsetRenditionService2(RenditionService2Impl renditionService2)voidsetTransactionService(TransactionService transactionService)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
-
setLocalTransformServiceRegistry
public void setLocalTransformServiceRegistry(LocalTransformServiceRegistry localTransformServiceRegistry)
-
setTransactionService
public void setTransactionService(TransactionService transactionService)
-
setContentService
public void setContentService(ContentService contentService)
-
setRenditionService2
public void setRenditionService2(RenditionService2Impl renditionService2)
-
setExecutorService
public void setExecutorService(java.util.concurrent.ExecutorService executorService)
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
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
-
-