org.deltava.commands.cooler
Class ThreadPostCommand

java.lang.Object
  extended by org.deltava.commands.AbstractCommand
      extended by org.deltava.commands.cooler.ThreadPostCommand
All Implemented Interfaces:
Command

public class ThreadPostCommand
extends AbstractCommand

A Web Site Command to handle new Water Cooler message threads.

Since:
1.0
Version:
3.1
Author:
Luke

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.deltava.commands.Command
Command.Scope
 
Field Summary
 
Fields inherited from interface org.deltava.commands.Command
APPLICATION, ID, OPERATION, PAGE, REQUEST, SESSION
 
Constructor Summary
ThreadPostCommand()
           
 
Method Summary
 void execute(CommandContext ctx)
          Executes the command.
 void init(String id, String cmdName)
          Initializes this command.
 
Methods inherited from class org.deltava.commands.AbstractCommand
getID, getName, getRoles, notFoundException, parseDateTime, parseDateTime, securityException, setRoles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadPostCommand

public ThreadPostCommand()
Method Detail

init

public void init(String id,
                 String cmdName)
          throws CommandException
Initializes this command.

Specified by:
init in interface Command
Overrides:
init in class AbstractCommand
Parameters:
cmdName - the name of the command
Throws:
CommandException - if the command name is null
IllegalStateException - if the command has already been initialized

execute

public void execute(CommandContext ctx)
             throws CommandException
Executes the command.

Parameters:
ctx - the Command context
Throws:
CommandException - if an unhandled error occurs


Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.