Package com.day.cq.dam.core.process
Class DeleteAssetProcess
- java.lang.Object
-
- com.day.cq.dam.commons.process.AbstractAssetWorkflowProcess
-
- com.day.cq.dam.core.process.DeleteAssetProcess
-
- All Implemented Interfaces:
WorkflowProcess
@Service @Property(name="process.label", value="Delete Asset") public class DeleteAssetProcess extends AbstractAssetWorkflowProcess
TheDeleteAssetProcess
will delete the asset content if the real asset disappears.Example:
If /var/dam/abc.jpg is deleted via webdav then /content/dam/abc.jpg will be removed
-
-
Field Summary
-
Fields inherited from class com.day.cq.dam.commons.process.AbstractAssetWorkflowProcess
TYPE_JCR_PATH
-
-
Constructor Summary
Constructors Constructor Description DeleteAssetProcess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap args)
Executes a new Java process with the given
andWorkItem
.WorkflowSession
-
-
-
Method Detail
-
execute
public void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap args) throws WorkflowException
Description copied from interface:WorkflowProcess
Executes a new Java process with the given
andWorkItem
.WorkflowSession
- Parameters:
workItem
- The
that defines the newly startedWorkItem
JavaProcessNew
.workflowSession
- The
that is used for starting theWorkflowSession
JavaProcess
.args
- Process specific arguments can be passed here- Throws:
WorkflowException
- Thrown in case something goes wrong during execution.
-
-