info.magnolia.setup.initial
Class UpdateURI2RepositoryMappings

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.setup.initial.UpdateURI2RepositoryMappings
All Implemented Interfaces:
Task

public class UpdateURI2RepositoryMappings
extends AllChildrenNodesOperation

Updates format of URI2Repository mappings to format used since 3.5.

Version:
$Id$

Field Summary
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
log
 
Constructor Summary
UpdateURI2RepositoryMappings()
           
 
Method Summary
protected  void doExecute(InstallContext ctx)
          Creates the mappings node and delegates to the super doExecute(InstallContext) method.
protected  void operateOnChildNode(Content node, InstallContext ctx)
          Moves every node to the mappings node.
 
Methods inherited from class info.magnolia.module.delta.AllChildrenNodesOperation
getParentNode
 
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

UpdateURI2RepositoryMappings

public UpdateURI2RepositoryMappings()
Method Detail

doExecute

protected void doExecute(InstallContext ctx)
                  throws javax.jcr.RepositoryException,
                         TaskExecutionException
Creates the mappings node and delegates to the super doExecute(InstallContext) method.

Overrides:
doExecute in class AllChildrenNodesOperation
Throws:
javax.jcr.RepositoryException
TaskExecutionException

operateOnChildNode

protected void operateOnChildNode(Content node,
                                  InstallContext ctx)
                           throws javax.jcr.RepositoryException,
                                  TaskExecutionException
Moves every node to the mappings node.

Specified by:
operateOnChildNode in class AllChildrenNodesOperation
Throws:
javax.jcr.RepositoryException
TaskExecutionException


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