info.magnolia.module.delta
Class QueryTask

java.lang.Object
  extended by info.magnolia.module.delta.AbstractTask
      extended by info.magnolia.module.delta.AbstractRepositoryTask
          extended by 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.


Field Summary
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
DO_NOTHING, log
 
Constructor Summary
QueryTask(String name, String description, String repositoryName, String query)
           
 
Method Summary
protected  void doExecute(InstallContext installContext)
           
protected abstract  void operateOnNode(InstallContext installContext, javax.jcr.Node node)
           
 
Methods inherited from class info.magnolia.module.delta.AbstractRepositoryTask
execute
 
Methods inherited from class info.magnolia.module.delta.AbstractTask
getDescription, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryTask

public QueryTask(String name,
                 String description,
                 String repositoryName,
                 String query)
Method Detail

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.