Class TransferAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.TransferAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for equipment program Transfer Requests.
- Since:
- 1.0
- Version:
- 8.6
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.security.command.AccessControl
_ctx -
Constructor Summary
ConstructorsConstructorDescriptionTransferAccessControl(SecurityContext ctx, TransferRequest treq) Initialize the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if the Transfer Request can be approved and the Pilot transferred.booleanReturns if a new Check Ride can be assigned.booleanReturns if the Transfer Request can be deleted without cancellation.booleanReturns if this Transfer Request can be canceled and deleted.booleanReturns if the user can toggle the Ratings only flag.voidvalidate()Calculates access rights.Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
TransferAccessControl
Initialize the Access Controller.- Parameters:
ctx- the security contexttreq- the Transfer Request
-
-
Method Details
-
validate
Calculates access rights.- Specified by:
validatein classAccessControl- Throws:
AccessControlException- if the Transfer Request cannot be viewed
-
getCanApprove
public boolean getCanApprove()Returns if the Transfer Request can be approved and the Pilot transferred.- Returns:
- TRUE if the Pilot can be transferred, otherwise FALSE
-
getCanReject
public boolean getCanReject()Returns if this Transfer Request can be canceled and deleted.- Returns:
- TRUE if the Request can be rejected, otherwise FALSE
-
getCanAssignRide
public boolean getCanAssignRide()Returns if a new Check Ride can be assigned.- Returns:
- TRUE if the user can assign a Check Ride, otherwise FALSE
-
getCanToggleRatings
public boolean getCanToggleRatings()Returns if the user can toggle the Ratings only flag.- Returns:
- TRUE if the ratings flag can be changed, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns if the Transfer Request can be deleted without cancellation.- Returns:
- TRUE if the Request can be deleted, otherwise FALSE
-