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 AbstractAssetWorkflowProcess
TheAssetSetLastModifiedProcess
sets the last modified properties of theAsset
. These are the jcr:lastModified and jcr:lastModifiedByProperties
of 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 Property
that may store aCalendar
. The Asset's Content Node will be take as root for the relative PathrelativeLastModifiedPath:myModificationDate relativeLastModifiedByPath: A path pointing to a Property
that 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 class
AssetSetLastModifiedProcess.Arguments
The 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)
void
execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaData)
Executes a new Java process with the given
andWorkItem
.WorkflowSession
-
-
-
Method Detail
-
execute
public void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaData) 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
.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)
-
-