Class AirlineInformation
java.lang.Object
org.deltava.beans.system.AirlineInformation
- All Implemented Interfaces:
Serializable, Cloneable, Comparable<AirlineInformation>, Auditable, ComboAlias, Cacheable
public class AirlineInformation
extends Object
implements Comparable<AirlineInformation>, Auditable, ComboAlias, Cacheable
A bean to store information about other virtual airlines.
- Since:
- 1.0
- Version:
- 12.2
- Author:
- Luke
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAirlineInformation(String code, String name) Creates a new Airline Information bean. -
Method Summary
Modifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intbooleanbooleanReturns whether the airline allows Pilots to be members of multiple virtual airlines.Returns the object ID for this auditable object.booleanReturns whether the Airline supports automatic scoring and approval of ACARS flight reports.booleanReturns whether Pilots can be transferred into this Airline.getCode()Returns the Airline code.Returns the alias to use in the HTML <OPTION> element.Returns the visible name to use in the HTML <OPTION> element.getDB()Returns the Airline database name.Returns the Airline domain name.booleanReturns whether historic routes are restricted to historic equipment.getName()Returns the Airline name.inthashCode()voidsetAllowMultiAirline(boolean allowMulti) Updates whether this airline allows multiple pilot profiles.voidsetAutoApprove(boolean autoApprove) Updates whether this airline supports automatic scoring and approval of ACARS flights.voidsetCanTransfer(boolean doTransfer) Updates whether Pilots can be transferred into this Airline.voidUpdates the Airline database name.voidUpdates the Airline domain name.voidsetHistoricRestricted(boolean isRestricted) Updates whether historic routes are restricted to historic equipment.toString()Methods inherited from interface Auditable
getAuditType, isCrossApp
-
Constructor Details
-
AirlineInformation
Creates a new Airline Information bean.- Parameters:
code- the Airline Codename- the Airline name- Throws:
NullPointerException- if code or name are null- See Also:
-
-
Method Details
-
getCode
-
getDomain
-
getDB
-
getName
-
getAutoApprove
public boolean getAutoApprove()Returns whether the Airline supports automatic scoring and approval of ACARS flight reports.- Returns:
- TRUE if automatic approval is suppoprted, otherwise FALSE
-
getCanTransfer
public boolean getCanTransfer()Returns whether Pilots can be transferred into this Airline.- Returns:
- TRUE if Pilots can be transferred here, otherwise FALSE
- See Also:
-
getHistoricRestricted
public boolean getHistoricRestricted()Returns whether historic routes are restricted to historic equipment.- Returns:
- TRUE if routes restricted, otherwise FALSE
- See Also:
-
getAllowMultiAirline
public boolean getAllowMultiAirline()Returns whether the airline allows Pilots to be members of multiple virtual airlines.- Returns:
- TRUE if multiple profiles allowed, otherwise FALSE
- See Also:
-
setDomain
Updates the Airline domain name. The domain will be converted to lowercase.- Parameters:
domain- the domain name- Throws:
NullPointerException- if domain is null- See Also:
-
setDB
Updates the Airline database name. The database will be converted to lowercase.- Parameters:
dbName- the database name- Throws:
NullPointerException- if dbName is null- See Also:
-
setCanTransfer
public void setCanTransfer(boolean doTransfer) Updates whether Pilots can be transferred into this Airline.- Parameters:
doTransfer- TRUE if Pilots can be transferred, otherwise FALSE- See Also:
-
setHistoricRestricted
public void setHistoricRestricted(boolean isRestricted) Updates whether historic routes are restricted to historic equipment.- Parameters:
isRestricted- TRUE if routes restricted, otherwise FALSE- See Also:
-
setAllowMultiAirline
public void setAllowMultiAirline(boolean allowMulti) Updates whether this airline allows multiple pilot profiles.- Parameters:
allowMulti- TRUE if the user can be a member of multiple airlines, otherwise FALSE- See Also:
-
setAutoApprove
public void setAutoApprove(boolean autoApprove) Updates whether this airline supports automatic scoring and approval of ACARS flights.- Parameters:
autoApprove- TRUE if flights can be automatically approvted, otherwise FALSE- See Also:
-
getComboName
Description copied from interface:ComboAliasReturns the visible name to use in the HTML <OPTION> element.- Specified by:
getComboNamein interfaceComboAlias- Returns:
- The visible name for this entry
-
getComboAlias
Description copied from interface:ComboAliasReturns the alias to use in the HTML <OPTION> element.- Specified by:
getComboAliasin interfaceComboAlias- Returns:
- The alias for this entry
-
cacheKey
-
compareTo
- Specified by:
compareToin interfaceComparable<AirlineInformation>
-
equals
-
toString
-
hashCode
-
getAuditID
Description copied from interface:AuditableReturns the object ID for this auditable object.- Specified by:
getAuditIDin interfaceAuditable- Returns:
- the ID
-