org.deltava.commands
Class AbstractFormCommand

java.lang.Object
  extended by org.deltava.commands.AbstractCommand
      extended by org.deltava.commands.AbstractFormCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
AircraftCommand, AirlineCommand, AirportCommand, ApplicantCommand, BlogEntryCommand, CertificationCommand, CertificationRequirementsCommand, ChannelCommand, ChannelCommand, ChartCommand, CheckRideScriptCommand, EquipmentCommand, EventRoutesCommand, ExamPoolsCommand, ExamProfileCommand, HelpEntryCommand, IMAPMailboxCommand, InstructionFlightCommand, InstructionSessionCommand, IssueCommand, IssueCommand, LibraryEditCommand, LiveryCommand, MessageTemplateCommand, PIREPCommand, ProfileCommand, QuestionProfileCommand, RegistrationBlockCommand, ResourceCommand, ScheduleEntryCommand, ServerCommand, ServiceEntryCommand, TimeZoneCommand, UserFileCommand, VideoCommand

public abstract class AbstractFormCommand
extends AbstractCommand

A class to support form editing/saving web site commands.

Since:
1.0
Version:
1.0
Author:
Luke

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.deltava.commands.Command
Command.Scope
 
Field Summary
static int EDIT
           
static String[] OPS
           
static int READ
           
static int SAVE
           
 
Fields inherited from interface org.deltava.commands.Command
APPLICATION, ID, OPERATION, PAGE, REQUEST, SESSION
 
Constructor Summary
AbstractFormCommand()
           
 
Method Summary
protected abstract  void execEdit(CommandContext ctx)
          Method called when editing the form.
protected abstract  void execRead(CommandContext ctx)
          Method called when reading the form.
protected abstract  void execSave(CommandContext ctx)
          Method called when saving the form.
 void execute(CommandContext ctx)
          Executes the command, and based on the operation calls an implementation method for the particular operation.
 
Methods inherited from class org.deltava.commands.AbstractCommand
getID, getName, getRoles, init, notFoundException, parseDateTime, parseDateTime, securityException, setRoles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

READ

public static final int READ
See Also:
Constant Field Values

EDIT

public static final int EDIT
See Also:
Constant Field Values

SAVE

public static final int SAVE
See Also:
Constant Field Values

OPS

public static final String[] OPS
Constructor Detail

AbstractFormCommand

public AbstractFormCommand()
Method Detail

execute

public final void execute(CommandContext ctx)
                   throws CommandException
Executes the command, and based on the operation calls an implementation method for the particular operation.

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

execSave

protected abstract void execSave(CommandContext ctx)
                          throws CommandException
Method called when saving the form.

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

execEdit

protected abstract void execEdit(CommandContext ctx)
                          throws CommandException
Method called when editing the form.

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

execRead

protected abstract void execRead(CommandContext ctx)
                          throws CommandException
Method called when reading the form.

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


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