info.magnolia.setup.for5_0
Class CheckOrCreateLastActivatedPropertyTask
java.lang.Object
info.magnolia.module.delta.AbstractTask
info.magnolia.module.delta.AbstractRepositoryTask
info.magnolia.setup.for5_0.CheckOrCreateLastActivatedPropertyTask
- All Implemented Interfaces:
- Task
public class CheckOrCreateLastActivatedPropertyTask
- extends AbstractRepositoryTask
This task checks whether the node specified by 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)
.
CheckOrCreateLastActivatedPropertyTask
public CheckOrCreateLastActivatedPropertyTask(String taskName,
String taskDescription,
String workspace,
String path)
- Parameters:
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 set
doExecute
protected void doExecute(InstallContext installContext)
throws javax.jcr.RepositoryException,
TaskExecutionException
- Specified by:
doExecute
in class AbstractRepositoryTask
- Throws:
javax.jcr.RepositoryException
TaskExecutionException
Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.