jtge.engine.command
Interface ICommand

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
ILoginCommand
All Known Implementing Classes:
AbstractCommand, Flow, LoginOrder

public interface ICommand
extends java.io.Serializable

Defines a command.

Version:
$Revision: 1.5 $ $Date: 2005/08/26 18:09:36 $
Author:
Mathieu Champlon

Method Summary
 void execute(IContext context)
          Execute the command.
 ICommand filter(IFilter filter)
          Filter the command.
 ICommand sort(ISorter sorter)
          Sort the command.
 boolean validate(IUser user)
          Test user right.
 

Method Detail

validate

public boolean validate(IUser user)
Test user right.

Parameters:
user - the user
Returns:
whether the user has the right to issue this command or not

execute

public void execute(IContext context)
Execute the command.

Parameters:
context - the context in which to execute the command

filter

public ICommand filter(IFilter filter)
Filter the command.

Parameters:
filter - the filter to use
Returns:
the filtered command

sort

public ICommand sort(ISorter sorter)
Sort the command.

Parameters:
sorter - the sorter to use
Returns:
the sorted command


Copyright © 2003-2005 . All Rights Reserved.