info.magnolia.module.delta
Class ChangeNodeTypeTask

java.lang.Object
  extended by info.magnolia.module.delta.AbstractTask
      extended by info.magnolia.module.delta.AbstractRepositoryTask
          extended by info.magnolia.module.delta.ChangeNodeTypeTask
All Implemented Interfaces:
Task

public class ChangeNodeTypeTask
extends AbstractRepositoryTask

Changes a node type by delegating to ContentUtil.changeNodeType(Content, ItemType, boolean) with the last parameter set to false.

Version:
$Id$
Author:
fgrilli

Field Summary
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
log
 
Constructor Summary
ChangeNodeTypeTask(String nodePath, String workspace, ItemType newType)
           
 
Method Summary
protected  void doExecute(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

ChangeNodeTypeTask

public ChangeNodeTypeTask(String nodePath,
                          String workspace,
                          ItemType newType)
Parameters:
nodePath - - String the path to the node
workspace - - String the workspace where the node is stored
newType - - ItemType the new type
Method Detail

doExecute

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


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