public class CheckOrCreateLastActivatedPropertyTask extends AbstractRepositoryTask
workspace
and path
constructor parameters has the mgnl:lastActivated
property set,
and if not, sets it to the current date &time (by calling NodeTypes.Activatable#update(Node, String, boolean)
.DO_NOTHING
Constructor and Description |
---|
CheckOrCreateLastActivatedPropertyTask(String taskName,
String taskDescription,
String workspace,
String path) |
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(InstallContext installContext) |
execute
getDescription, getName, toString
public CheckOrCreateLastActivatedPropertyTask(String taskName, String taskDescription, String workspace, String path)
path
- the workspace of the node mgnl:lastActivated property has to be setworkspace
- the path of the node the mgnl:lastActivated property has to be setprotected void doExecute(InstallContext installContext) throws javax.jcr.RepositoryException, TaskExecutionException
doExecute
in class AbstractRepositoryTask
javax.jcr.RepositoryException
TaskExecutionException
Copyright © 2003–2019 Magnolia International Ltd.. All rights reserved.