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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    protected abstract String
    Create a specifier to be used for temporary file location.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      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 data
      rendition - the source rendition object
      workflowSession - the workflow session
      args - the parsed process arguments
      Returns:
      the modified layer