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 voidadd(FlightReport fr) Adds and processes a Flight Report.protected AircraftgetAircraft(String acType) Loads an Aircraft profile.abstract StringReturns the content type of the output.abstract StringReturns the default file extension of the output.protected intReturns the leg index for a leg that counts for promotion to Captain in an equipment program.voidloadAircraft(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
-