Class 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 Detail

      • AbstractRenditionModifyingProcess

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