info.magnolia.commands.chain
Interface Command
- All Known Subinterfaces:
- Chain, Filter
- All Known Implementing Classes:
- BaseRepositoryCommand, ChainBase, DelegateCommand, DeleteCommand, ExportCommand, ImportCommand, LogCommand, MarkNodeAsDeletedCommand, MessageCommand, MgnlCommand, RuleBasedCommand, VersionCommand
public interface Command
A replacement for the org.apache.commons.chain.Command interface.
A Command encapsulates a unit of processing work to be performed,
whose purpose is to examine and/or modify the state of a transaction that is
represented by a Context.
Method Summary |
Command |
copy(Command command)
This method allows to create new copy of a command, so the instances in
the CommandManager's catalogs are masters, and the execution always uses
new instance created by this method.
NOTE: If your command uses default parameters (set from a JCR property),
you MUST override this method to copy the values from the master command
to the actually used copy. |
boolean |
execute(Context context)
|
CONTINUE_PROCESSING
static final boolean CONTINUE_PROCESSING
- See Also:
- Constant Field Values
PROCESSING_COMPLETE
static final boolean PROCESSING_COMPLETE
- See Also:
- Constant Field Values
execute
boolean execute(Context context)
throws Exception
- Throws:
Exception
copy
Command copy(Command command)
- This method allows to create new copy of a command, so the instances in
the CommandManager's catalogs are masters, and the execution always uses
new instance created by this method.
NOTE: If your command uses default parameters (set from a JCR property),
you MUST override this method to copy the values from the master command
to the actually used copy.
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.