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 Details

    • AirlineInformation

      public AirlineInformation(String code, String name)
      Creates a new Airline Information bean.
      Parameters:
      code - the Airline Code
      name - the Airline name
      Throws:
      NullPointerException - if code or name are null
      See Also:
  • Method Details

    • getCode

      public String getCode()
      Returns the Airline code.
      Returns:
      the airline code
    • getDomain

      public String getDomain()
      Returns the Airline domain name.
      Returns:
      the domain
      See Also:
    • getDB

      public String getDB()
      Returns the Airline database name.
      Returns:
      the database name
      See Also:
    • getName

      public String getName()
      Returns the Airline name.
      Returns:
      the airline name
    • 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

      public void setDomain(String domain)
      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

      public void setDB(String dbName)
      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

      public String getComboName()
      Description copied from interface: ComboAlias
      Returns the visible name to use in the HTML <OPTION> element.
      Specified by:
      getComboName in interface ComboAlias
      Returns:
      The visible name for this entry
    • getComboAlias

      public String getComboAlias()
      Description copied from interface: ComboAlias
      Returns the alias to use in the HTML <OPTION> element.
      Specified by:
      getComboAlias in interface ComboAlias
      Returns:
      The alias for this entry
    • cacheKey

      public Object cacheKey()
      Description copied from interface: Cacheable
      Returns the cache key for this object. Caches call this method when adding the object.
      Specified by:
      cacheKey in interface Cacheable
      Returns:
      the cache key for the object
    • compareTo

      public int compareTo(AirlineInformation ai2)
      Specified by:
      compareTo in interface Comparable<AirlineInformation>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getAuditID

      public String getAuditID()
      Description copied from interface: Auditable
      Returns the object ID for this auditable object.
      Specified by:
      getAuditID in interface Auditable
      Returns:
      the ID