Class LogbookExport

java.lang.Object
org.deltava.service.logbook.LogbookExport
Direct Known Subclasses:
CSVExport, JSONExport

abstract class LogbookExport extends Object
An interface for Pilot log book exporters.
Since:
10.3
Version:
10.3
Author:
Luke
  • Constructor Details

    • LogbookExport

      LogbookExport()
  • Method Details

    • add

      public abstract void add(FlightReport fr)
      Adds and processes a Flight Report.
      Parameters:
      fr - a FlightReport bean
    • getContentType

      public abstract String getContentType()
      Returns the content type of the output.
      Returns:
      the MIME type
    • getExtension

      public abstract String getExtension()
      Returns the default file extension of the output.
      Returns:
      the file extension
    • getPromotionCount

      protected int getPromotionCount(FlightReport fr)
      Returns the leg index for a leg that counts for promotion to Captain in an equipment program.
      Parameters:
      fr - the FlightReport
      Returns:
      the promotion leg index, or zero
    • getAircraft

      protected Aircraft getAircraft(String acType)
      Loads an Aircraft profile.
      Parameters:
      acType - the aircraft name
      Returns:
      an Aircraft, or null if not found
    • loadAircraft

      public void loadAircraft(Collection<Aircraft> acTypes)
      Loads Aircraft profiles for translation.
      Parameters:
      acTypes - a Collection of Aircraft