net.sourceforge.openutils.mgnlmedia.media.commands
Class MediaActivationCommand

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 net.sourceforge.openutils.mgnlmedia.media.commands.MediaActivationCommand
All Implemented Interfaces:
org.apache.commons.chain.Command

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

Overrides default activation, and doesn't publish resolutions node

Version:
$Id: MediaActivationCommand.java 2374 2010-05-09 17:15:31Z fgiust $
Author:
molaschi

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
MediaActivationCommand()
           
 
Method Summary
protected  void activateRecursive(String parentPath, info.magnolia.cms.core.Content node, info.magnolia.context.Context ctx)
          
 void activateRecursiveOneLevel(String parentPath, info.magnolia.cms.core.Content node)
          Activate recursive one level
protected  void activateSingleNode(String parentPath, info.magnolia.cms.core.Content node)
           
 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

MediaActivationCommand

public MediaActivationCommand()
Method Detail

execute

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

Overrides:
execute in class info.magnolia.module.admininterface.commands.ActivationCommand

activateRecursiveOneLevel

public void activateRecursiveOneLevel(String parentPath,
                                      info.magnolia.cms.core.Content node)
                               throws javax.jcr.RepositoryException,
                                      info.magnolia.cms.exchange.ExchangeException
Activate recursive one level

Parameters:
parentPath - parent node
node - node to activate
Throws:
javax.jcr.RepositoryException - exception
info.magnolia.cms.exchange.ExchangeException - exception exchanging node

activateSingleNode

protected void activateSingleNode(String parentPath,
                                  info.magnolia.cms.core.Content node)
                           throws javax.jcr.RepositoryException,
                                  info.magnolia.cms.exchange.ExchangeException
Parameters:
parentPath -
node -
Throws:
javax.jcr.RepositoryException
info.magnolia.cms.exchange.ExchangeException

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

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


Copyright © 2008-2010 Openmind. All Rights Reserved.