Class EquipmentRideScript

java.lang.Object
org.deltava.beans.testing.CheckRideScript
org.deltava.beans.testing.EquipmentRideScript
All Implemented Interfaces:
Serializable, Cloneable, Comparable<CheckRideScript>, Auditable

public class EquipmentRideScript extends CheckRideScript
A bean to store Check Ride scripts.
Since:
1.0
Version:
10.2
Author:
Luke
See Also:
  • Constructor Details

    • EquipmentRideScript

      public EquipmentRideScript(String programName, String eqType)
      Creates a new Check Ride script.
      Parameters:
      programName - the equipment program name
      eqType - the equipment type
      Throws:
      NullPointerException - if eqType is null
      See Also:
  • Method Details

    • getEquipmentType

      public String getEquipmentType()
      Returns the equipment type for this script.
      Returns:
      the equipment type
      See Also:
    • getProgram

      public String getProgram()
      Returns the Equipment Program for this check ride script.
      Returns:
      the equipment program name
    • getIsCurrency

      public boolean getIsCurrency()
      Returns whether this is a currency check ride script.
      Returns:
      TRUE if a currency check ride script, otherwise FALSE
      See Also:
    • getIsDefault

      public boolean getIsDefault()
      Returns whether this is the default script for a particular equipment program. This will be used even if there is no script for the user-requested equipment/simulator combination.
      Returns:
      TRUE if the default script, otherwise FALSE
      See Also:
    • setEquipmentType

      public void setEquipmentType(String eqType)
      Sets the aircraft type for this check ride script.
      Parameters:
      eqType - the aircraft type
      Throws:
      NullPointerException - if eqType is null
      See Also:
    • setIsCurrency

      public void setIsCurrency(boolean isCurrency)
      Sets whether this is a currency check ride script.
      Parameters:
      isCurrency - TRUE if a currency check ride script, otherwise FALSE
      See Also:
    • setIsDefault

      public void setIsDefault(boolean isDefault)
      Sets whether this is the default check ride script for an equipment program.
      Parameters:
      isDefault - TRUE if default, otherwise FALSE
      See Also:
    • compareTo

      public int compareTo(EquipmentRideScript cs2)
      Compares two check ride scripts by comparing their equipment types.
      Parameters:
      cs2 - the script
      Returns:
      TRUE if the equipment type and programs match, otherwise FALSE
    • isCrossApp

      public boolean isCrossApp()
      Description copied from interface: Auditable
      Returns whether this object is within multiple web applications. Objects where this is false will need additional data appended to the audit ID to prevent information leakage across applications where the audit IDs are identical between apps.
      Returns:
      TRUE if cross-application, otherwise FALSE
    • getAuditID

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