info.magnolia.module.data.setup
Class RegisterNodeTypeTask

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

public class RegisterNodeTypeTask
extends info.magnolia.module.delta.AbstractRepositoryTask

Task to register custom node types. When using this task, place it in the getBasicInstallTasks as a very first task. It needs to be executed BEFORE bootstrap task.

Version:
$Id$

Field Summary
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
log
 
Constructor Summary
RegisterNodeTypeTask(String typeName)
          Registers new data type during module installation.
 
Method Summary
protected  void doExecute(info.magnolia.module.InstallContext installContext)
           
 
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

RegisterNodeTypeTask

public RegisterNodeTypeTask(String typeName)
Registers new data type during module installation.

Parameters:
typeName - Name of the registered type.
Method Detail

doExecute

protected void doExecute(info.magnolia.module.InstallContext installContext)
                  throws javax.jcr.RepositoryException,
                         info.magnolia.module.delta.TaskExecutionException
Specified by:
doExecute in class info.magnolia.module.delta.AbstractRepositoryTask
Throws:
javax.jcr.RepositoryException
info.magnolia.module.delta.TaskExecutionException


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