org.deltava.commands.acars
Class ACARSLogViewCommand

java.lang.Object
  extended by org.deltava.commands.AbstractCommand
      extended by org.deltava.commands.AbstractViewCommand
          extended by org.deltava.commands.acars.ACARSLogViewCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
ConnectionLogCommand, EmptyLogEntriesCommand, FlightLogCommand, MessageLogCommand

public abstract class ACARSLogViewCommand
extends AbstractViewCommand

A helper class for viewing ACARS logs.

Since:
1.0
Version:
2.6
Author:
Luke

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.deltava.commands.Command
Command.Scope
 
Field Summary
 
Fields inherited from interface org.deltava.commands.Command
APPLICATION, ID, OPERATION, PAGE, REQUEST, SESSION
 
Constructor Summary
ACARSLogViewCommand()
           
 
Method Summary
protected  Set<Integer> getPilotIDs(Collection<?> viewEntries)
          Returns a Set of Pilot IDs from the view results.
protected  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
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
 
Methods inherited from interface org.deltava.commands.Command
execute
 

Constructor Detail

ACARSLogViewCommand

public ACARSLogViewCommand()
Method Detail

getSearchCriteria

protected LogSearchCriteria getSearchCriteria(CommandContext ctx,
                                              Connection con)
                                       throws DAOException
Calculates the search type from the request, and updates request attributes.

Parameters:
ctx - the Command context
Returns:
a search type constant
Throws:
DAOException

getPilotIDs

protected Set<Integer> getPilotIDs(Collection<?> viewEntries)
Returns a Set of Pilot IDs from the view results.

Parameters:
viewEntries - the view result entries
Returns:
a Set of Pilot IDs


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