Class CharterRequestAccessControl

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

public class CharterRequestAccessControl extends AccessControl
An Access Controller for Charter flight Requests.
Since:
10.0
Version:
10.0
Author:
Luke
See Also:
  • Constructor Details

    • CharterRequestAccessControl

      public CharterRequestAccessControl(SecurityContext ctx, CharterRequest cr)
      Initializes the Access Controller.
      Parameters:
      ctx - the SecurityContext
      cr - the CharterRequest
  • Method Details

    • validate

      public void validate()
      Description copied from class: AccessControl
      Calculates access control rights
      Specified by:
      validate in class AccessControl
    • getCanView

      public boolean getCanView()
      Returns if the user can view this Charter Request.
      Returns:
      TRUE if the user can view the request, otherwise FALSE
    • getCanEdit

      public boolean getCanEdit()
      Returns if the user can edit this Charter Request.
      Returns:
      TRUE if the user can edit the request, otherwise FALSE
    • getCanDispose

      public boolean getCanDispose()
      Returns if the user can dispose of this Charter Request.
      Returns:
      TRUE if the user can dispose of the request, otherwise FALSE