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 org.deltava.security.command.PIREPAccessControl
_pirep
Fields inherited from class org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionCrossAppPIREPAccessControl
(SecurityContext ctx, FlightReport fr, CheckRide cr) Initializes the access controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if the PIREP can be approved and the Check Ride can be scored.boolean
Returns if a new PIREP can be created.boolean
Returns if the PIREP can be deleted.boolean
Returns if the PIREP can be disposed of in any way (approved/rejected) by the current user.boolean
Returns if the PIREP can be edited.boolean
Returns if the PIREP can be held.boolean
Returns if the PIREP can be rejected.boolean
Returns if the PIREP can be released from hold status.boolean
Returns if the PIREP can be submitted.boolean
Returns if the PIREP can be submitted when editing.boolean
Returns if the PIREP was submitted by the current user.void
validate()
Calculates access rights.Methods inherited from class org.deltava.security.command.PIREPAccessControl
getCanAdjustEvents, getCanCalculateLoad, getCanEditCore, getCanEliteRescore, getCanOverrideDateRange, getCanPreApprove, getCanProxySubmit, getCanUpdateComments, getCanUseSimBrief, getCanViewComments, getCanViewDiagnosticData, getCanViewScore, getCanViewSimBrief, getCanWithdraw
Methods inherited from class org.deltava.security.command.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:
getCanCreate
in classPIREPAccessControl
- Returns:
- FALSE
-
getCanEdit
public boolean getCanEdit()Returns if the PIREP can be edited.- Overrides:
getCanEdit
in classPIREPAccessControl
- Returns:
- FALSE
-
getCanSubmit
public boolean getCanSubmit()Returns if the PIREP can be submitted.- Overrides:
getCanSubmit
in classPIREPAccessControl
- Returns:
- FALSE
- See Also:
-
getCanSubmitIfEdit
public boolean getCanSubmitIfEdit()Returns if the PIREP can be submitted when editing.- Overrides:
getCanSubmitIfEdit
in classPIREPAccessControl
- Returns:
- FALSE
- See Also:
-
getCanHold
public boolean getCanHold()Returns if the PIREP can be held.- Overrides:
getCanHold
in classPIREPAccessControl
- Returns:
- FALSE
-
getCanRelease
public boolean getCanRelease()Returns if the PIREP can be released from hold status.- Overrides:
getCanRelease
in classPIREPAccessControl
- Returns:
- FALSE
-
getCanApprove
public boolean getCanApprove()Returns if the PIREP can be approved and the Check Ride can be scored.- Overrides:
getCanApprove
in classPIREPAccessControl
- Returns:
- TRUE if it can be approved, otherwise FALSE
-
getCanReject
public boolean getCanReject()Returns if the PIREP can be rejected.- Overrides:
getCanReject
in classPIREPAccessControl
- Returns:
- TRUE if it can be rejected, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns if the PIREP can be deleted.- Overrides:
getCanDelete
in classPIREPAccessControl
- Returns:
- FALSE
-
getOurFlight
public boolean getOurFlight()Returns if the PIREP was submitted by the current user.- Overrides:
getOurFlight
in 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:
getCanDispose
in classPIREPAccessControl
- Returns:
- TRUE if the PIREP can be approved or rejected, otherwise FALSE
- See Also:
-