|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jtge.engine.command.Flow
Implements a composite of commands.
Constructor Summary | |
Flow()
Create a command composite. |
Method Summary | |
void |
add(ICommand command)
Add a command to the composite. |
boolean |
equals(java.lang.Object object)
|
void |
execute(IContext context)
Execute the command. |
ICommand |
filter(IFilter filter)
Filter the command. |
int |
hashCode()
|
boolean |
isEmpty()
Check whether the flow contains commands or not. |
ICommand |
sort(ISorter sorter)
Sort the command. |
boolean |
validate(IUser user)
Test user right. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Flow()
Method Detail |
public final void add(ICommand command)
command
- the command to addpublic final boolean equals(java.lang.Object object)
public final int hashCode()
public final boolean validate(IUser user)
validate
in interface ICommand
user
- the user
public final void execute(IContext context)
execute
in interface ICommand
context
- the context in which to execute the commandpublic final ICommand filter(IFilter filter)
filter
in interface ICommand
filter
- the filter to use
public final boolean isEmpty()
public final ICommand sort(ISorter sorter)
sort
in interface ICommand
sorter
- the sorter to use
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |