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

public class UpdateURI2RepositoryMappings
extends AllChildrenNodesOperation

Updates format of URI2Repository mappings to format used since 3.5.

Version:
$Id: UpdateURI2RepositoryMappings.java 41137 2011-01-06 18:19:25Z gjoseph $
Author:
vsteller

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-2012 Magnolia International Ltd.. All Rights Reserved.