package org.hippoecm.repository.gallery; import org.hippoecm.repository.api.Workflow; import org.hippoecm.repository.api.WorkflowException; import javax.jcr.Node; import java.io.InputStream; import java.util.Calendar; public interface GalleryProcessorWorkflow extends Workflow { /** * Request the scaling of inputStream and update the node with the scaled variants and sets the lastModifiedDate * @param calendar * @return * @throws WorkflowException */ public void processLater(Calendar calendar) throws WorkflowException; /** * Request the scaling of inputStream and update the node with the scaled variants and sets the lastModifiedDate * * @throws WorkflowException */ public void processNow(String fileName) throws WorkflowException; public void scale(String fileName) throws WorkflowException; public void setParameters(WorkflowParameters parameters); }