info.magnolia.module.admininterface.commands
Class VersionCommand

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

public class VersionCommand
extends RuleBasedCommand

Creates a version for the passed path in the website repository.

Version:
$Id$
Author:
Philipp Bracher

Field Summary
 
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
VersionCommand()
           
 
Method Summary
protected  void addComment(info.magnolia.cms.core.Content node)
           
protected  void cleanComment(info.magnolia.cms.core.Content node)
           
 boolean execute(info.magnolia.context.Context ctx)
           
 String getComment()
           
protected  info.magnolia.cms.core.Content.ContentFilter getFilter()
           
 boolean isRecursive()
           
 void release()
           
 void setComment(String comment)
           
 void setRecursive(boolean recursive)
           
 
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

VersionCommand

public VersionCommand()
Method Detail

execute

public boolean execute(info.magnolia.context.Context ctx)
Specified by:
execute in class info.magnolia.commands.MgnlCommand
See Also:
MgnlCommand.execute(org.apache.commons.chain.Context)

addComment

protected void addComment(info.magnolia.cms.core.Content node)
                   throws info.magnolia.cms.security.AccessDeniedException,
                          javax.jcr.RepositoryException
Throws:
info.magnolia.cms.security.AccessDeniedException
javax.jcr.RepositoryException

cleanComment

protected void cleanComment(info.magnolia.cms.core.Content node)
                     throws info.magnolia.cms.security.AccessDeniedException,
                            javax.jcr.RepositoryException
Throws:
info.magnolia.cms.security.AccessDeniedException
javax.jcr.RepositoryException

getFilter

protected info.magnolia.cms.core.Content.ContentFilter getFilter()

isRecursive

public boolean isRecursive()
Returns:
is recursive versioning

setRecursive

public void setRecursive(boolean recursive)
Parameters:
recursive -

getComment

public String getComment()

setComment

public void setComment(String comment)

release

public void release()
Overrides:
release in class RuleBasedCommand


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