Class LogbookExport
java.lang.Object
org.deltava.service.logbook.LogbookExport
- Direct Known Subclasses:
CSVExport
,JSONExport
An interface for Pilot log book exporters.
- Since:
- 10.3
- Version:
- 10.3
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
add
(FlightReport fr) Adds and processes a Flight Report.protected Aircraft
getAircraft
(String acType) Loads an Aircraft profile.abstract String
Returns the content type of the output.abstract String
Returns the default file extension of the output.protected int
Returns the leg index for a leg that counts for promotion to Captain in an equipment program.void
loadAircraft
(Collection<Aircraft> acTypes) Loads Aircraft profiles for translation.
-
Constructor Details
-
LogbookExport
LogbookExport()
-
-
Method Details
-
add
Adds and processes a Flight Report.- Parameters:
fr
- a FlightReport bean
-
getContentType
Returns the content type of the output.- Returns:
- the MIME type
-
getExtension
Returns the default file extension of the output.- Returns:
- the file extension
-
getPromotionCount
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
-
loadAircraft
Loads Aircraft profiles for translation.- Parameters:
acTypes
- a Collection of Aircraft
-