info.magnolia.commands.impl
Class VersionCommand

java.lang.Object
  extended by info.magnolia.commands.MgnlCommand
      extended by info.magnolia.commands.impl.BaseRepositoryCommand
          extended by info.magnolia.commands.impl.RuleBasedCommand
              extended by info.magnolia.commands.impl.VersionCommand
All Implemented Interfaces:
Command, Cloneable

public class VersionCommand
extends RuleBasedCommand

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


Field Summary
 
Fields inherited from class info.magnolia.commands.impl.RuleBasedCommand
ATTRIBUTE_RULE
 
Fields inherited from class info.magnolia.commands.MgnlCommand
log
 
Fields inherited from interface info.magnolia.commands.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
VersionCommand()
           
 
Method Summary
protected  void addComment(javax.jcr.Node node)
           
protected  void cleanComment(javax.jcr.Node node)
           
 boolean execute(Context ctx)
          This is the actual method to be overridden in descendant classes.
 String getComment()
           
 boolean isRecursive()
           
 void release()
          If a clone is passivated we call this method.
 void setComment(String comment)
           
 void setRecursive(boolean recursive)
           
 
Methods inherited from class info.magnolia.commands.impl.RuleBasedCommand
getItemTypes, getRule, setItemTypes, setRule
 
Methods inherited from class info.magnolia.commands.impl.BaseRepositoryCommand
getJCRNode, getNode, getPath, getRepository, getUuid, setPath, setRepository, setUuid
 
Methods inherited from class info.magnolia.commands.MgnlCommand
clone, execute, isEnabled, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionCommand

public VersionCommand()
Method Detail

execute

public boolean execute(Context ctx)
                throws Exception
Description copied from class: MgnlCommand
This is the actual method to be overridden in descendant classes.

Specified by:
execute in class MgnlCommand
Throws:
Exception
See Also:
MgnlCommand.execute(info.magnolia.context.Context)

addComment

protected void addComment(javax.jcr.Node node)
                   throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

cleanComment

protected void cleanComment(javax.jcr.Node node)
                     throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

isRecursive

public boolean isRecursive()
Returns:
is recursive versioning

setRecursive

public void setRecursive(boolean recursive)

getComment

public String getComment()

setComment

public void setComment(String comment)

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 RuleBasedCommand


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