jtge.engine.command
Class AbstractCommand

java.lang.Object
  extended byjtge.engine.command.AbstractCommand
All Implemented Interfaces:
ICommand, java.io.Serializable
Direct Known Subclasses:
AbstractOrder, AbstractResult, AbstractUpdate

public abstract class AbstractCommand
extends java.lang.Object
implements ICommand

Abstracts command behaviours.

Version:
$Revision: 1.3 $ $Date: 2005/08/26 18:09:36 $
Author:
Mathieu Champlon
See Also:
Serialized Form

Constructor Summary
AbstractCommand()
           
 
Method Summary
 ICommand filter(IFilter filter)
          Filter the command.
 ICommand sort(ISorter sorter)
          Sort the command.
 boolean validate(IUser user)
          Test user right.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jtge.engine.command.ICommand
execute
 

Constructor Detail

AbstractCommand

public AbstractCommand()
Method Detail

filter

public final ICommand filter(IFilter filter)
Filter the command.

Specified by:
filter in interface ICommand
Parameters:
filter - the filter to use
Returns:
the filtered command

sort

public final ICommand sort(ISorter sorter)
Sort the command.

Specified by:
sort in interface ICommand
Parameters:
sorter - the sorter to use
Returns:
the sorted command

validate

public boolean validate(IUser user)
Test user right.

Specified by:
validate in interface ICommand
Parameters:
user - the user
Returns:
whether the user has the right to issue this command or not


Copyright © 2003-2005 . All Rights Reserved.