Class ACARSLogViewCommand
java.lang.Object
org.deltava.commands.AbstractCommand
org.deltava.commands.AbstractViewCommand
org.deltava.commands.acars.ACARSLogViewCommand
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
ConnectionLogCommand
,FlightLogCommand
,MessageLogCommand
A helper class for viewing ACARS logs.
- Since:
- 1.0
- Version:
- 7.2
- Author:
- Luke
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.deltava.commands.Command
Command.Scope
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Collection
<Integer> getPilotIDs
(Collection<? extends AuthoredBean> viewEntries) Returns a Collection of Pilot IDs from the view results.protected static LogSearchCriteria
getSearchCriteria
(CommandContext ctx, Connection con) Calculates the search type from the request, and updates request attributes.Methods inherited from class org.deltava.commands.AbstractViewCommand
initView, initView
Methods inherited from class org.deltava.commands.AbstractCommand
forgottenException, getID, getName, getRoles, init, notFoundException, parseDateTime, parseDateTime, securityException, setRoles
-
Constructor Details
-
ACARSLogViewCommand
public ACARSLogViewCommand()
-
-
Method Details
-
getSearchCriteria
protected static LogSearchCriteria getSearchCriteria(CommandContext ctx, Connection con) throws DAOException Calculates the search type from the request, and updates request attributes.- Parameters:
ctx
- the Command contextcon
- the JDBC connection to use- Returns:
- a search type constant
- Throws:
DAOException
- if a JDBC error occurs
-
getPilotIDs
Returns a Collection of Pilot IDs from the view results.- Parameters:
viewEntries
- the view result entries- Returns:
- a Collection of Pilot IDs
-