Class CrossAppPIREPAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.PIREPAccessControl
org.deltava.security.command.CrossAppPIREPAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for Flight Reports across Airlines.
- Since:
- 2.0
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class PIREPAccessControl
_pirepFields inherited from class AccessControl
_ctx -
Constructor Summary
ConstructorsConstructorDescriptionCrossAppPIREPAccessControl(SecurityContext ctx, FlightReport fr, CheckRide cr) Initializes the access controller. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if the PIREP can be approved and the Check Ride can be scored.booleanReturns if a new PIREP can be created.booleanReturns if the PIREP can be deleted.booleanReturns if the PIREP can be disposed of in any way (approved/rejected) by the current user.booleanReturns if the PIREP can be edited.booleanReturns if the PIREP can be held.booleanReturns if the PIREP can be rejected.booleanReturns if the PIREP can be released from hold status.booleanReturns if the PIREP can be submitted.booleanReturns if the PIREP can be submitted when editing.booleanReturns if the PIREP was submitted by the current user.voidvalidate()Calculates access rights.Methods inherited from class PIREPAccessControl
getCanAdjustEvents, getCanCalculateLoad, getCanEditCore, getCanEliteRescore, getCanOverrideDateRange, getCanPreApprove, getCanProxySubmit, getCanUpdateComments, getCanUseSimBrief, getCanViewComments, getCanViewDiagnosticData, getCanViewScore, getCanViewSimBrief, getCanWithdrawMethods inherited from class AccessControl
validateContext
-
Constructor Details
-
CrossAppPIREPAccessControl
Initializes the access controller.- Parameters:
ctx- the Command Contextfr- the Flight Report to be operated oncr- the Checkride to evaluate
-
-
Method Details
-
validate
-
getCanCreate
public boolean getCanCreate()Returns if a new PIREP can be created.- Overrides:
getCanCreatein classPIREPAccessControl- Returns:
- FALSE
-
getCanEdit
public boolean getCanEdit()Returns if the PIREP can be edited.- Overrides:
getCanEditin classPIREPAccessControl- Returns:
- FALSE
-
getCanSubmit
public boolean getCanSubmit()Returns if the PIREP can be submitted.- Overrides:
getCanSubmitin classPIREPAccessControl- Returns:
- FALSE
- See Also:
-
getCanSubmitIfEdit
public boolean getCanSubmitIfEdit()Returns if the PIREP can be submitted when editing.- Overrides:
getCanSubmitIfEditin classPIREPAccessControl- Returns:
- FALSE
- See Also:
-
getCanHold
public boolean getCanHold()Returns if the PIREP can be held.- Overrides:
getCanHoldin classPIREPAccessControl- Returns:
- FALSE
-
getCanRelease
public boolean getCanRelease()Returns if the PIREP can be released from hold status.- Overrides:
getCanReleasein classPIREPAccessControl- Returns:
- FALSE
-
getCanApprove
public boolean getCanApprove()Returns if the PIREP can be approved and the Check Ride can be scored.- Overrides:
getCanApprovein classPIREPAccessControl- Returns:
- TRUE if it can be approved, otherwise FALSE
-
getCanReject
public boolean getCanReject()Returns if the PIREP can be rejected.- Overrides:
getCanRejectin classPIREPAccessControl- Returns:
- TRUE if it can be rejected, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns if the PIREP can be deleted.- Overrides:
getCanDeletein classPIREPAccessControl- Returns:
- FALSE
-
getOurFlight
public boolean getOurFlight()Returns if the PIREP was submitted by the current user.- Overrides:
getOurFlightin classPIREPAccessControl- Returns:
- FALSE
-
getCanDispose
public boolean getCanDispose()Returns if the PIREP can be disposed of in any way (approved/rejected) by the current user.- Overrides:
getCanDisposein classPIREPAccessControl- Returns:
- TRUE if the PIREP can be approved or rejected, otherwise FALSE
- See Also:
-