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: ActivationCommand.java 38799 2010-11-04 16:17:32Z had $
Fields inherited from interface org.apache.commons.chain.Command |
CONTINUE_PROCESSING, PROCESSING_COMPLETE |
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 |
ActivationCommand
public ActivationCommand()
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-2010 Magnolia International Ltd.. All Rights Reserved.