public class LocalTransformClient extends AbstractTransformClient implements TransformClient
nodeService| Constructor and Description |
|---|
LocalTransformClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
Object |
checkSupported(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
RenditionDefinition2 renditionDefinition)
Checks the transformation required for the rendition is supported.
|
void |
setContentService(ContentService contentService) |
void |
setExecutorService(ExecutorService executorService) |
void |
setRenditionService2(RenditionService2Impl renditionService2) |
void |
setTransactionService(TransactionService transactionService) |
void |
transform(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
RenditionDefinition2 renditionDefinition,
Object transformInfo,
String user,
int sourceContentUrlHashCode)
Requests an asynchronous transform and the subsequent linkage of that transform as a rendition.
|
getContentData, setNodeServicepublic void setContentService(ContentService contentService)
public void setRenditionService2(RenditionService2Impl renditionService2)
public void setExecutorService(ExecutorService executorService)
public void setTransactionService(TransactionService transactionService)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class AbstractTransformClientExceptionpublic Object checkSupported(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, RenditionDefinition2 renditionDefinition)
TransformClientcheckSupported in interface TransformClientsourceNodeRef - the source noderenditionDefinition - which rendition to performTransformClient.transform(NodeRef, RenditionDefinition2, Object, String, int) as the transformInfo parameter to
avoid having to work it out again.public void transform(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
RenditionDefinition2 renditionDefinition,
Object transformInfo,
String user,
int sourceContentUrlHashCode)
TransformClienttransform in interface TransformClientsourceNodeRef - the source noderenditionDefinition - which rendition to performtransformInfo - the object returned by TransformClient.checkSupported(NodeRef, RenditionDefinition2).user - that requested the transform.sourceContentUrlHashCode - the hash code of the source node's content URL. Used to check the transform result
still matches the source node, before it is used as a rendition.Copyright © 2005–2018 Alfresco Software. All rights reserved.