info.magnolia.module.delta
Class ChangeNodeTypeTask
java.lang.Object
info.magnolia.module.delta.AbstractTask
info.magnolia.module.delta.AbstractRepositoryTask
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
ChangeNodeTypeTask
public ChangeNodeTypeTask(String nodePath,
String workspace,
ItemType newType)
- Parameters:
nodePath
- - String the path to the nodeworkspace
- - String the workspace where the node is storednewType
- - ItemType
the new type
doExecute
protected void doExecute(InstallContext ctx)
throws javax.jcr.RepositoryException,
TaskExecutionException
- Specified by:
doExecute
in class AbstractRepositoryTask
- Throws:
javax.jcr.RepositoryException
TaskExecutionException
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.