info.magnolia.module.admininterface.commands
Class ActivationCommand

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
All Implemented Interfaces:
org.apache.commons.chain.Command

public class ActivationCommand
extends BaseActivationCommand

the activation command which do real activation

Author:
jackie $Id$

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
ActivationCommand()
           
 
Method Summary
protected  void activateRecursive(info.magnolia.context.Context ctx, List versionMap)
           
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)
          Execute activation
protected  List getOrderingInfo(info.magnolia.cms.core.Content node)
          collect node UUID of the siblings in the exact order as it should be written on subscribers
 String getVersion()
           
 List getVersionMap()
           
 boolean isRecursive()
           
 void release()
           
 void setRecursive(boolean recursive)
           
 void setVersion(String number)
           
 void setVersionMap(List versionMap)
           
 
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
getJCRNode, 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

ActivationCommand

public ActivationCommand()
Method Detail

execute

public boolean execute(info.magnolia.context.Context ctx)
Execute activation

Specified by:
execute in class info.magnolia.commands.MgnlCommand

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).

Parameters:
parentPath -
node -
Throws:
info.magnolia.cms.exchange.ExchangeException
javax.jcr.RepositoryException

activateRecursive

protected void activateRecursive(info.magnolia.context.Context ctx,
                                 List versionMap)
                          throws info.magnolia.cms.exchange.ExchangeException,
                                 javax.jcr.RepositoryException
Parameters:
ctx -
versionMap -
Throws:
info.magnolia.cms.exchange.ExchangeException
javax.jcr.RepositoryException

getOrderingInfo

protected List getOrderingInfo(info.magnolia.cms.core.Content node)
collect node UUID of the siblings in the exact order as it should be written on subscribers

Parameters:
node -

isRecursive

public boolean isRecursive()
Returns:
the recursive

setRecursive

public void setRecursive(boolean recursive)
Parameters:
recursive - the recursive to set

setVersion

public void setVersion(String number)
Parameters:
number - version number to be set for activation

getVersion

public String getVersion()
Returns:
version number

setVersionMap

public void setVersionMap(List versionMap)
Parameters:
versionMap - version map to be set for activation

getVersionMap

public List getVersionMap()
Returns:
version map

release

public void release()
Overrides:
release in class BaseActivationCommand


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