Class AbstractFormCommand

java.lang.Object
org.deltava.commands.AbstractCommand
org.deltava.commands.AbstractFormCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
AbstractAuditFormCommand, ApplicantCommand, CertificationRequirementsCommand, ChartCommand, CharterRequestCommand, EventRoutesCommand, GalleryImageCommand, InstallerUploadCommand, InstructionFlightCommand, InstructionSessionCommand, JobPostingCommand, NominationCommand, PIREPCommand, ProfileCommand, ResponseTemplateCommand, RunwayMappingCommand, ScheduleEntryCommand, ServiceEntryCommand, TimeZoneCommand, UserFileCommand, VideoCommand

public abstract class AbstractFormCommand extends AbstractCommand
A class to support form editing/saving web site commands.
Since:
1.0
Version:
7.0
Author:
Luke
  • Constructor Details

    • AbstractFormCommand

      public AbstractFormCommand()
  • Method Details

    • 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