info.magnolia.module.templatingkit.setup
Class MoveIntenseDebateIdTask

java.lang.Object
  extended by info.magnolia.module.delta.AbstractTask
      extended by info.magnolia.module.templatingkit.setup.MoveIntenseDebateIdTask
All Implemented Interfaces:
info.magnolia.module.delta.Task

public class MoveIntenseDebateIdTask
extends info.magnolia.module.delta.AbstractTask

A task to move the intenseDebateId which may be used on the stkComments-component.
When the task has been executed successfully, intenseDebateId will be a property of a node with the path /modules/standard-templating-kit/templates/components/features/stkComments/parameters; that node will be created if required.
If the path /modules/standard-templating-kit/templates/components/features/stkComments doesn't exist, this indicates considerably customized templates and hence configuration will not be changed.


Field Summary
static String INTENSEDEBATEID_PROPERTYNAME
           
static String[] LEGACY_COMMENT_NODE_PATHS
          Paths to the old comments config (STK, ETK vs.
static String PARAMETERS_NODE_NAME
           
static String STKCOMMENTSCOMPONENT_PATH
           
static String WARN_MESSAGE_NOTCHANGINGCONFIG
           
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
DO_NOTHING, log
 
Constructor Summary
MoveIntenseDebateIdTask()
           
 
Method Summary
 void execute(info.magnolia.module.InstallContext installContext)
           
 
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

INTENSEDEBATEID_PROPERTYNAME

public static final String INTENSEDEBATEID_PROPERTYNAME
See Also:
Constant Field Values

STKCOMMENTSCOMPONENT_PATH

public static final String STKCOMMENTSCOMPONENT_PATH
See Also:
Constant Field Values

PARAMETERS_NODE_NAME

public static final String PARAMETERS_NODE_NAME
See Also:
Constant Field Values

LEGACY_COMMENT_NODE_PATHS

public static final String[] LEGACY_COMMENT_NODE_PATHS
Paths to the old comments config (STK, ETK vs. MultiSite). A multi-site configuration should precede the STK config (last element in array, so it overrides any STK setting).


WARN_MESSAGE_NOTCHANGINGCONFIG

public static final String WARN_MESSAGE_NOTCHANGINGCONFIG
See Also:
Constant Field Values
Constructor Detail

MoveIntenseDebateIdTask

public MoveIntenseDebateIdTask()
Method Detail

execute

public void execute(info.magnolia.module.InstallContext installContext)
             throws info.magnolia.module.delta.TaskExecutionException
Throws:
info.magnolia.module.delta.TaskExecutionException


Copyright © 2008-2014 Magnolia International Ltd.. All Rights Reserved.