Class TransferAccessControl

java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.TransferAccessControl
All Implemented Interfaces:
Serializable

public class TransferAccessControl extends AccessControl
An Access Controller for equipment program Transfer Requests.
Since:
1.0
Version:
8.6
Author:
Luke
See Also:
  • Constructor Details

    • TransferAccessControl

      public TransferAccessControl(SecurityContext ctx, TransferRequest treq)
      Initialize the Access Controller.
      Parameters:
      ctx - the security context
      treq - the Transfer Request
  • Method Details

    • validate

      public void validate() throws AccessControlException
      Calculates access rights.
      Specified by:
      validate in class AccessControl
      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