Package com.adobe.acs.commons.dam
Class AbstractRenditionModifyingProcess
java.lang.Object
com.adobe.acs.commons.dam.AbstractRenditionModifyingProcess
Abstract asset workflow which performs some action on a particular rendition
(which was presumably created by an earlier workflow process).
Arguments:
- renditionName - The name of the rendition to modify.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidexecute(com.day.cq.workflow.exec.WorkItem workItem, com.day.cq.workflow.WorkflowSession workflowSession, com.day.cq.workflow.metadata.MetaDataMap metaData, WorkflowHelper workflowHelper) protected abstract StringCreate a specifier to be used for temporary file location.protected abstract com.day.image.LayerprocessLayer(com.day.image.Layer layer, com.day.cq.dam.api.Rendition rendition, com.day.cq.workflow.WorkflowSession workflowSession, String[] args) Perform the actual layer processing and return the layer to be saved.
-
Constructor Details
-
AbstractRenditionModifyingProcess
public AbstractRenditionModifyingProcess()
-
-
Method Details
-
execute
public final void execute(com.day.cq.workflow.exec.WorkItem workItem, com.day.cq.workflow.WorkflowSession workflowSession, com.day.cq.workflow.metadata.MetaDataMap metaData, WorkflowHelper workflowHelper) throws com.day.cq.workflow.WorkflowException - Throws:
com.day.cq.workflow.WorkflowException
-
getTempFileSpecifier
Create a specifier to be used for temporary file location.- Returns:
- the temp file qualifier
-
processLayer
protected abstract com.day.image.Layer processLayer(com.day.image.Layer layer, com.day.cq.dam.api.Rendition rendition, com.day.cq.workflow.WorkflowSession workflowSession, String[] args) Perform the actual layer processing and return the layer to be saved.- Parameters:
layer- the source image datarendition- the source rendition objectworkflowSession- the workflow sessionargs- the parsed process arguments- Returns:
- the modified layer
-