jtge.engine.command
Class AbstractOrder

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

public abstract class AbstractOrder
extends AbstractCommand

Abstracts order behaviour.

Basically this class is a command attached to a user.

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

Constructor Summary
protected AbstractOrder(IUser user)
          Create an order.
 
Method Summary
protected  IUser getUser()
          Retrieve the user issuing the order.
 boolean validate(IUser user)
          Test user right.
 
Methods inherited from class jtge.engine.command.AbstractCommand
filter, sort
 
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

AbstractOrder

protected AbstractOrder(IUser user)
Create an order.

Parameters:
user - the user issuing the order
Method Detail

getUser

protected final IUser getUser()
Retrieve the user issuing the order.

Returns:
the user

validate

public boolean validate(IUser user)
Test user right.

Specified by:
validate in interface ICommand
Overrides:
validate in class AbstractCommand


Copyright © 2003-2005 . All Rights Reserved.