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 AbstractAssetWorkflowProcessTheDeleteAssetProcesswill 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 voidexecute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap args)Executes a new Java process with the givenandWorkItem.WorkflowSession
-
-
-
Method Detail
-
execute
public void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap args) throws WorkflowException
Description copied from interface:WorkflowProcessExecutes a new Java process with the givenandWorkItem.WorkflowSession- Parameters:
workItem- Thethat defines the newly startedWorkItemJavaProcessNew.workflowSession- Thethat is used for starting theWorkflowSessionJavaProcess.args- Process specific arguments can be passed here- Throws:
WorkflowException- Thrown in case something goes wrong during execution.
-
-