Class ApprovalStatus
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.flight.ApprovalStatus
- All Implemented Interfaces:
Serializable, Comparable<Object>, IDBean, Cacheable
A bean to track post-approval operations for a Flight Report.
- Since:
- 12.1
- Version:
- 12.1
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ApprovalOperation op) Adds an incomplete post-approval operation for this Flight.booleanChecks if a post-approval operation is pending for this Flight.voidRemoves a complete post-approval operation from this Flight.Methods inherited from class DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateID
-
Constructor Details
-
ApprovalStatus
public ApprovalStatus(int id) Creates the bean.- Parameters:
id- the Flight Report database ID
-
-
Method Details
-
add
Adds an incomplete post-approval operation for this Flight.- Parameters:
op- the ApprovalOperation
-
isPending
Checks if a post-approval operation is pending for this Flight.- Parameters:
op- the ApprovalOperation- Returns:
- TRUE if the Operation is incomplete, otherwise FALSE
-
remove
Removes a complete post-approval operation from this Flight.- Parameters:
op- the ApprovalOperation
-