Class EquipmentRideScript
java.lang.Object
org.deltava.beans.testing.CheckRideScript
org.deltava.beans.testing.EquipmentRideScript
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<CheckRideScript>
,Auditable
A bean to store Check Ride scripts.
- Since:
- 1.0
- Version:
- 10.2
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.beans.testing.CheckRideScript
_programName
-
Constructor Summary
ConstructorsConstructorDescriptionEquipmentRideScript
(String programName, String eqType) Creates a new Check Ride script. -
Method Summary
Modifier and TypeMethodDescriptionint
Compares two check ride scripts by comparing their equipment types.Returns the object ID for this auditable object.Returns the equipment type for this script.boolean
Returns whether this is a currency check ride script.boolean
Returns whether this is the default script for a particular equipment program.Returns the Equipment Program for this check ride script.boolean
Returns whether this object is within multiple web applications.void
setEquipmentType
(String eqType) Sets the aircraft type for this check ride script.void
setIsCurrency
(boolean isCurrency) Sets whether this is a currency check ride script.void
setIsDefault
(boolean isDefault) Sets whether this is the default check ride script for an equipment program.Methods inherited from class org.deltava.beans.testing.CheckRideScript
addSimulator, compareTo, getDescription, getSimulators, setDescription
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.deltava.beans.Auditable
getAuditType
-
Constructor Details
-
EquipmentRideScript
Creates a new Check Ride script.- Parameters:
programName
- the equipment program nameeqType
- the equipment type- Throws:
NullPointerException
- if eqType is null- See Also:
-
-
Method Details
-
getEquipmentType
Returns the equipment type for this script.- Returns:
- the equipment type
- See Also:
-
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
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
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
-