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, getCanWithdrawModifier and TypeMethodDescriptionbooleanReturns if the user can adjust Tour/Online Event flags for this PIREP.booleanReturns if the load factor for this PIREP can be calculated in advance.booleanReturns if core flight data (airports, airline, date, equipment) can be modified.booleanReturns if the user can recalculate the Elite program score for this Flight Report.booleanReturns if the user can override date range limitations for PIREP submission.booleanReturns if the user can pre-approve a Charter Flight.booleanReturns if the user can submit a Flight Report on behalf of another user.booleanReturns whether the disposition comments can be updated.booleanReturns if the user can plot this flight using SimBrief.booleanReturns whether the disposition comments can be viewed.booleanReturns whether the ACARS diagnostic data can be viewed.booleanReturns if the user can view the calculated Flight Score.booleanReturns if the user can view the flight's SimBrief briefing data.booleanReturns if the PIREP can be withdrawn.Methods inherited from class AccessControl
validateContextModifier and TypeMethodDescriptionprotected voidValidates the command context for this access controller.
-
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:
-