info.magnolia.module.delta
Class AllModulesNodeOperation

java.lang.Object
  extended by info.magnolia.module.delta.AbstractTask
      extended by info.magnolia.module.delta.AbstractRepositoryTask
          extended by info.magnolia.module.delta.AllChildrenNodesOperation
              extended by info.magnolia.module.delta.AllModulesNodeOperation
All Implemented Interfaces:
Task
Direct Known Subclasses:
DeprecateDialogPathAllModules, FixTemplatePathTask, NestPropertiesAllModulesNodeTask, ReconfigureCommands, RemoveModuleDescriptorDetailsFromRepo, RenamedRenderersToTemplateRenderers, RenamePropertyAllModulesNodeTask, UpdateURIMappings, WarnIgnoredModuleFilters

public abstract class AllModulesNodeOperation
extends AllChildrenNodesOperation

An abstract that will perform an operation on all modules node found in the configuration repository.

Version:
$Revision: $ ($Author: $)
Author:
gjoseph
See Also:
Warning: tasks will fail if the modules node does not exist yet. (As an incentive to force the explicit creation of this node)

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

AllModulesNodeOperation

public AllModulesNodeOperation(String name,
                               String description)
Method Detail

getHierarchyManager

protected HierarchyManager getHierarchyManager(InstallContext ctx)
                                        throws javax.jcr.RepositoryException,
                                               TaskExecutionException
Throws:
javax.jcr.RepositoryException
TaskExecutionException

getParentNode

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

operateOnChildNode

protected void operateOnChildNode(Content node,
                                  InstallContext ctx)
                           throws javax.jcr.RepositoryException,
                                  TaskExecutionException
Specified by:
operateOnChildNode in class AllChildrenNodesOperation
Throws:
javax.jcr.RepositoryException
TaskExecutionException

operateOnModuleNode

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


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