Package com.day.cq.dam.core.process
Class AssetSetLastModifiedProcess
- java.lang.Object
-
- com.day.cq.dam.commons.process.AbstractAssetWorkflowProcess
-
- com.day.cq.dam.core.process.AssetSetLastModifiedProcess
-
- All Implemented Interfaces:
WorkflowProcess
@Service @Property(name="process.label", value="Set Last Modified") public class AssetSetLastModifiedProcess extends AbstractAssetWorkflowProcessTheAssetSetLastModifiedProcesssets the last modified properties of theAsset. These are the jcr:lastModified and jcr:lastModifiedByPropertiesof Asset's Node and its MetaData "dc:modified" value.In addition custom properties for the modification date and modifier can be set.
Arguments:
Prefix Description Example relativeLastModifiedPath: A path pointing to a Propertythat may store aCalendar. The Asset's Content Node will be take as root for the relative PathrelativeLastModifiedPath:myModificationDate relativeLastModifiedByPath: A path pointing to a Propertythat may store a String. The Asset's Content Node will be take as root for the relative PathrelativeLastModifiedByPath:myModifier - See Also:
AbstractAssetWorkflowProcess
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAssetSetLastModifiedProcess.ArgumentsThe available arguments to this process implementation.
-
Field Summary
-
Fields inherited from class com.day.cq.dam.commons.process.AbstractAssetWorkflowProcess
TYPE_JCR_PATH
-
-
Constructor Summary
Constructors Constructor Description AssetSetLastModifiedProcess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]buildArguments(MetaDataMap metaData)voidexecute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaData)Executes a new Java process with the givenandWorkItem.WorkflowSession
-
-
-
Method Detail
-
execute
public void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaData) 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.metaData- Process specific arguments can be passed here- Throws:
WorkflowException- Thrown in case something goes wrong during execution.
-
buildArguments
public java.lang.String[] buildArguments(MetaDataMap metaData)
-
-