info.magnolia.module.admininterface.commands
Class ActivationCommand
java.lang.Object
info.magnolia.commands.MgnlCommand
info.magnolia.module.admininterface.commands.BaseRepositoryCommand
info.magnolia.module.admininterface.commands.RuleBasedCommand
info.magnolia.module.admininterface.commands.BaseActivationCommand
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$
Fields inherited from interface org.apache.commons.chain.Command |
CONTINUE_PROCESSING, PROCESSING_COMPLETE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActivationCommand
public ActivationCommand()
execute
public boolean execute(Context ctx)
- Execute activation
- Specified by:
execute
in class MgnlCommand
activateRecursive
protected void activateRecursive(String parentPath,
Content node,
Context ctx)
throws ExchangeException,
javax.jcr.RepositoryException
- Activate recursively. This is done one by one to send only small peaces (memory friendly).
- Parameters:
parentPath
- node
-
- Throws:
ExchangeException
javax.jcr.RepositoryException
activateRecursive
protected void activateRecursive(Context ctx,
List versionMap)
throws ExchangeException,
javax.jcr.RepositoryException
- Parameters:
ctx
- versionMap
-
- Throws:
ExchangeException
javax.jcr.RepositoryException
getOrderingInfo
protected List getOrderingInfo(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()
- Description copied from class:
MgnlCommand
- If a clone is passivated we call this method. Please clean up private properties.
- Overrides:
release
in class BaseActivationCommand
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.