Package com.adobe.acs.commons.dam
Class AbstractRenditionModifyingProcess
- java.lang.Object
-
- com.adobe.acs.commons.dam.AbstractRenditionModifyingProcess
-
@ConsumerType public abstract class AbstractRenditionModifyingProcess extends Object
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 Constructor Description AbstractRenditionModifyingProcess()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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 StringgetTempFileSpecifier()Create 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.
-
-
-
Method Detail
-
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
protected abstract String 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
-
-