info.magnolia.module.shop.setup
Class RegisterNodeTypeMultipleTask

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

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

Register a new node type with property multiple set to true so we can use categorization on data types.

Author:
tmiyar

Field Summary
static MessageFormat NODE_TYPE_DEF_TEMPLATE
           
protected static String NODE_TYPE_DEFINITION
          Node type template for registering node types for the single types.
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
log
 
Constructor Summary
RegisterNodeTypeMultipleTask(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
 

Field Detail

NODE_TYPE_DEFINITION

protected static final String NODE_TYPE_DEFINITION
Node type template for registering node types for the single types.

See Also:
Constant Field Values

NODE_TYPE_DEF_TEMPLATE

public static final MessageFormat NODE_TYPE_DEF_TEMPLATE
Constructor Detail

RegisterNodeTypeMultipleTask

public RegisterNodeTypeMultipleTask(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 © 2014 Magnolia International Ltd.. All Rights Reserved.