Class MessageLogCommand
java.lang.Object
org.deltava.commands.AbstractCommand
org.deltava.commands.AbstractViewCommand
org.deltava.commands.acars.ACARSLogViewCommand
org.deltava.commands.acars.MessageLogCommand
- All Implemented Interfaces:
Command
A Web Site Command to view the ACARS Text Message log.
- Since:
- 1.0
- Version:
- 8.0
- 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
Methods inherited from class ACARSLogViewCommand
getPilotIDs, getSearchCriteriaModifier and TypeMethodDescriptionprotected static Collection<Integer> getPilotIDs(Collection<? extends AuthoredBean> viewEntries) Returns a Collection of Pilot IDs from the view results.protected static LogSearchCriteriagetSearchCriteria(CommandContext ctx, Connection con) Calculates the search type from the request, and updates request attributes.Methods inherited from class AbstractViewCommand
initView, initViewModifier and TypeMethodDescriptionprotected static <T> ViewContext<T> initView(CommandContext ctx, Class<T> c) Initializes the view context for a command invocation, with the default view page size, either for the system or for the authenticated user (if any).protected static <T> ViewContext<T> initView(CommandContext ctx, Class<T> c, int defaultSize) Initializes the view context for a command invocation and saves it in the request.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.
-
Constructor Details
-
MessageLogCommand
public MessageLogCommand()
-
-
Method Details
-
execute
Executes the command.- Parameters:
ctx- the Command context- Throws:
CommandException- if an error (typically database) occurs
-