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:
- 11.1
- 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.int
boolean
boolean
Returns whether the airline allows Pilots to be members of multiple virtual airlines.Returns the object ID for this auditable object.boolean
Returns 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.boolean
Returns whether historic routes are restricted to historic equipment.getName()
Returns the Airline name.int
hashCode()
void
setAllowMultiAirline
(boolean allowMulti) Updates whether this airline allows multiple pilot profiles.void
setCanTransfer
(boolean doTransfer) Updates whether Pilots can be transferred into this Airline.void
Updates the Airline database name.void
Updates the Airline domain name.void
setHistoricRestricted
(boolean isRestricted) Updates whether historic routes are restricted to historic equipment.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.deltava.beans.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
-
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:
-
getComboName
Description copied from interface:ComboAlias
Returns the visible name to use in the HTML <OPTION> element.- Specified by:
getComboName
in interfaceComboAlias
- Returns:
- The visible name for this entry
-
getComboAlias
Description copied from interface:ComboAlias
Returns the alias to use in the HTML <OPTION> element.- Specified by:
getComboAlias
in interfaceComboAlias
- Returns:
- The alias for this entry
-
cacheKey
-
compareTo
- Specified by:
compareTo
in interfaceComparable<AirlineInformation>
-
equals
-
toString
-
hashCode
-
getAuditID
Description copied from interface:Auditable
Returns the object ID for this auditable object.- Specified by:
getAuditID
in interfaceAuditable
- Returns:
- the ID
-