jtge.sample.chat.common.core.command
Class MessageOrder

java.lang.Object
  extended byjtge.engine.command.AbstractCommand
      extended byjtge.engine.command.AbstractOrder
          extended byjtge.sample.chat.common.core.command.MessageOrder
All Implemented Interfaces:
jtge.engine.command.ICommand, java.io.Serializable

public class MessageOrder
extends jtge.engine.command.AbstractOrder

Implements a message order.

Version:
$Revision: 1.7 $ $Date: 2005/09/10 14:06:21 $
Author:
Mathieu Champlon
See Also:
Serialized Form

Constructor Summary
MessageOrder(jtge.engine.user.IUser user, java.lang.String message)
          Create a message.
 
Method Summary
 void execute(jtge.engine.data.IContext context)
          
 boolean validate(jtge.engine.user.IUser user)
          
 
Methods inherited from class jtge.engine.command.AbstractOrder
getUser
 
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
 

Constructor Detail

MessageOrder

public MessageOrder(jtge.engine.user.IUser user,
                    java.lang.String message)
Create a message.

Parameters:
user - the user issuing the message
message - the message
Method Detail

execute

public final void execute(jtge.engine.data.IContext context)


validate

public final boolean validate(jtge.engine.user.IUser user)



Copyright © 2003-2005 . All Rights Reserved.