info.magnolia.module.delta
Class QueryTask
java.lang.Object
info.magnolia.module.delta.AbstractTask
info.magnolia.module.delta.AbstractRepositoryTask
info.magnolia.module.delta.QueryTask
- All Implemented Interfaces:
- Task
- Direct Known Subclasses:
- ChangeNodeTypeOfSubAppsTask, GrantReadPermissionToRolesTask, RemoveOpenWFEPermissionsTask
public abstract class QueryTask
- extends AbstractRepositoryTask
An abstract task to perform operations on nodes returned by a given query.
Keep in mind that results returned by a query will reflect the current
content of the repository, NOT of your session; i.e if a previous task
modified a property, the query might still return the node as if it had
the previous value.
Because the limitation above can lead to incomplete updates, we encourage usage of the NodeVisitorTask
instead.
- See Also:
NodeVisitorTask}
QueryTask
public QueryTask(String name,
String description,
String repositoryName,
String query)
doExecute
protected void doExecute(InstallContext installContext)
throws javax.jcr.RepositoryException,
TaskExecutionException
- Specified by:
doExecute
in class AbstractRepositoryTask
- Throws:
javax.jcr.RepositoryException
TaskExecutionException
operateOnNode
protected abstract void operateOnNode(InstallContext installContext,
javax.jcr.Node node)
Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.