info.magnolia.module.delta
Class AllChildrenNodesOperation

java.lang.Object
  extended by info.magnolia.module.delta.AbstractTask
      extended by info.magnolia.module.delta.AbstractRepositoryTask
          extended by info.magnolia.module.delta.AllChildrenNodesOperation
All Implemented Interfaces:
Task
Direct Known Subclasses:
AddURIPermissionsToAllRoles, AllModulesNodeOperation, HashUsersPasswords, UpdateURI2RepositoryMappings

public abstract class AllChildrenNodesOperation
extends AbstractRepositoryTask

This task executes the abstract method on every child node.

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

Field Summary
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
log
 
Constructor Summary
AllChildrenNodesOperation(String name, String description, String repositoryName, String parentNodePath)
           
AllChildrenNodesOperation(String name, String description, String repositoryName, String parentNodePath, Content.ContentFilter filter)
           
 
Method Summary
protected  void doExecute(InstallContext ctx)
           
protected  Content getParentNode(InstallContext ctx)
           
protected abstract  void operateOnChildNode(Content node, InstallContext ctx)
           
 
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

AllChildrenNodesOperation

public AllChildrenNodesOperation(String name,
                                 String description,
                                 String repositoryName,
                                 String parentNodePath)

AllChildrenNodesOperation

public AllChildrenNodesOperation(String name,
                                 String description,
                                 String repositoryName,
                                 String parentNodePath,
                                 Content.ContentFilter filter)
Method Detail

doExecute

protected void doExecute(InstallContext ctx)
                  throws javax.jcr.RepositoryException,
                         TaskExecutionException
Specified by:
doExecute in class AbstractRepositoryTask
Throws:
javax.jcr.RepositoryException
TaskExecutionException

getParentNode

protected Content getParentNode(InstallContext ctx)
                         throws javax.jcr.RepositoryException,
                                TaskExecutionException
Throws:
javax.jcr.RepositoryException
TaskExecutionException

operateOnChildNode

protected abstract void operateOnChildNode(Content node,
                                           InstallContext ctx)
                                    throws javax.jcr.RepositoryException,
                                           TaskExecutionException
Throws:
javax.jcr.RepositoryException
TaskExecutionException


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.