Class AbstractTestHistoryCommand
java.lang.Object
org.deltava.commands.AbstractCommand
org.deltava.commands.AbstractTestHistoryCommand
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
CheckRideAssignCommand, CheckRideFlagCommand, CurrencyRideAssignCommand, ExamCreateCommand, NakedCheckRideCommand, PilotCenterCommand, ProficiencyRideDisableCommand, ProficiencyRideEnableCommand, PromoteCommand, PromotionEligibilityCommand, TestingCenterCommand, TransferRequestCommand, WaiveCheckRideCommand
A class to support Web Site Commands use a
TestingHistoryHelper object to determine what
examinations/transfers a Pilot is eligible for.- Since:
- 1.0
- Version:
- 11.2
- Author:
- Luke
-
Nested Class Summary
Nested classes/interfaces inherited from interface Command
Command.Scope -
Field Summary
Fields inherited from interface Command
ID, OPERATION, PAGE, REQUEST, SESSIONModifier and TypeFieldDescriptionstatic final intstatic final intstatic final Command.Scopestatic final Command.Scopestatic final Command.Scope -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static final TestingHistoryHelperinitTestHistory(Pilot p, Connection c) Populates the Testing History Helper by calling the proper DAOs in the right order.Methods inherited from class AbstractCommand
forgottenException, getID, getName, getRoles, init, notFoundException, notFoundException, parseDateTime, parseDateTime, securityException, setRolesModifier and TypeMethodDescriptionprotected static CommandExceptionHelper method to generate a content blocked exception.final StringgetID()Return the ID of the command.final StringgetName()Return the name of the command.final Collection<String> getRoles()Return the roles authorized to execute this command.voidInitialize the Command.protected static CommandExceptionnotFoundException(String msg, int id) Helper method to generate an "item not found" exception for a given database ID.protected static CommandExceptionnotFoundException(String msg, Object id) Helper method to generate an "item not found" exception for a given ID.protected static InstantparseDateTime(CommandContext ctx, String paramHdr) Parses one or two HTTP request parameters into a date/time value, using the user's format patterns or the default format patterns if the user is not authenticated.protected static InstantparseDateTime(CommandContext ctx, String paramHdr, String dfmt, String tfmt) Parses one or two HTTP request parameters into a date/time value.protected static CommandExceptionsecurityException(String msg) Helper method to generate a security exception.final voidsetRoles(Collection<String> roles) Updates the roles authorized to execute this command.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AbstractTestHistoryCommand
public AbstractTestHistoryCommand()
-
-
Method Details
-
initTestHistory
protected static final TestingHistoryHelper initTestHistory(Pilot p, Connection c) throws DAOException Populates the Testing History Helper by calling the proper DAOs in the right order.- Parameters:
p- the Pilot beanc- the JDBC connection to use- Returns:
- a populated TestingHistoryHelper bean
- Throws:
DAOException- if a JDBC error occurs
-