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

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.

Version:
$Revision: $ ($Author: $)
Author:
gjoseph

Field Summary
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
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, Content 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,
                                      Content node)


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.