info.magnolia.module.data.commands
Class TypeActivateCommand

java.lang.Object
  extended by info.magnolia.commands.MgnlCommand
      extended by info.magnolia.module.admininterface.commands.BaseRepositoryCommand
          extended by info.magnolia.module.admininterface.commands.RuleBasedCommand
              extended by info.magnolia.module.admininterface.commands.BaseActivationCommand
                  extended by info.magnolia.module.admininterface.commands.ActivationCommand
                      extended by info.magnolia.module.data.commands.TypeActivateCommand
All Implemented Interfaces:
org.apache.commons.chain.Command

public class TypeActivateCommand
extends info.magnolia.module.admininterface.commands.ActivationCommand

Activation command that will activate tree and dialog related to given type. In case versioning is enabled the command will act like a normal activation command and activate the type only.

Version:
$Id:$
Author:
had

Field Summary
 
Fields inherited from class info.magnolia.module.admininterface.commands.BaseActivationCommand
ATTRIBUTE_SYNDICATOR
 
Fields inherited from class info.magnolia.module.admininterface.commands.RuleBasedCommand
ATTRIBUTE_RULE
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
TypeActivateCommand()
           
 
Method Summary
protected  void activateRecursive(String parentPath, info.magnolia.cms.core.Content node, info.magnolia.context.Context ctx)
          Activate recursively.
 boolean execute(info.magnolia.context.Context ctx)
           
 
Methods inherited from class info.magnolia.module.admininterface.commands.ActivationCommand
activateRecursive, getOrderingInfo, getVersion, getVersionMap, isRecursive, release, setRecursive, setVersion, setVersionMap
 
Methods inherited from class info.magnolia.module.admininterface.commands.BaseActivationCommand
getSyndicator, setSyndicator
 
Methods inherited from class info.magnolia.module.admininterface.commands.RuleBasedCommand
getItemTypes, getRule, setItemTypes, setRule
 
Methods inherited from class info.magnolia.module.admininterface.commands.BaseRepositoryCommand
getNode, getPath, getRepository, getUuid, setPath, setRepository, setUuid
 
Methods inherited from class info.magnolia.commands.MgnlCommand
execute, isClone, isEnabled, setClone, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeActivateCommand

public TypeActivateCommand()
Method Detail

execute

public boolean execute(info.magnolia.context.Context ctx)
Overrides:
execute in class info.magnolia.module.admininterface.commands.ActivationCommand

activateRecursive

protected void activateRecursive(String parentPath,
                                 info.magnolia.cms.core.Content node,
                                 info.magnolia.context.Context ctx)
                          throws info.magnolia.cms.exchange.ExchangeException,
                                 javax.jcr.RepositoryException
Activate recursively. This is done one by one to send only small peaces (memory friendly).

Overrides:
activateRecursive in class info.magnolia.module.admininterface.commands.ActivationCommand
Parameters:
parentPath -
node -
Throws:
info.magnolia.cms.exchange.ExchangeException
javax.jcr.RepositoryException


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