info.magnolia.commands.impl
Class RuleBasedCommand

java.lang.Object
  extended by info.magnolia.commands.MgnlCommand
      extended by info.magnolia.commands.impl.BaseRepositoryCommand
          extended by info.magnolia.commands.impl.RuleBasedCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
VersionCommand

public abstract class RuleBasedCommand
extends BaseRepositoryCommand

Base class for rule based commands.


Field Summary
static String ATTRIBUTE_RULE
          You can pass a rule to the command (optional).
 
Fields inherited from class info.magnolia.commands.MgnlCommand
log
 
Fields inherited from interface info.magnolia.commands.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
RuleBasedCommand()
           
 
Method Summary
 String getItemTypes()
           
 Rule getRule()
           
 void release()
          If a clone is passivated we call this method.
 void setItemTypes(String nodeTypes)
           
 void setRule(Rule rule)
           
 
Methods inherited from class info.magnolia.commands.impl.BaseRepositoryCommand
copy, getJCRNode, getNode, getPath, getRepository, getUuid, setPath, setRepository, setUuid
 
Methods inherited from class info.magnolia.commands.MgnlCommand
execute, execute, isEnabled, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTRIBUTE_RULE

public static final String ATTRIBUTE_RULE
You can pass a rule to the command (optional).

See Also:
Constant Field Values
Constructor Detail

RuleBasedCommand

public RuleBasedCommand()
Method Detail

getRule

public Rule getRule()

getItemTypes

public String getItemTypes()

setItemTypes

public void setItemTypes(String nodeTypes)

setRule

public void setRule(Rule rule)
Parameters:
rule - the Rule to set

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 BaseRepositoryCommand


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