Class EliteAccessControl

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

public class EliteAccessControl extends AccessControl
An Access Controller for Elite program operations.
Since:
9.2
Version:
9.2
Author:
Luke
See Also:
  • Constructor Details

    • EliteAccessControl

      public EliteAccessControl(SecurityContext ctx)
      Initializes the Access Controller.
      Parameters:
      ctx - the security context
  • Method Details

    • validate

      public void validate() throws AccessControlException
      Description copied from class: AccessControl
      Calculates access control rights
      Specified by:
      validate in class AccessControl
      Throws:
      AccessControlException - if no access at all is possible
    • getCanEdit

      public boolean getCanEdit()
      Returns whether an EliteLevel can be edited.
      Returns:
      TRUE if editable, otherwise FALSE
    • getCanDelete

      public boolean getCanDelete()
      Returns whether an EliteLevel can be deleted.
      Returns:
      TRUE if deletable, otherwise FALSE
    • getCanRecalculate

      public boolean getCanRecalculate()
      Returns whether a Pilot's EliteStatus can be recalculated.
      Returns:
      TRUE if it can be recalculated, otherwise FALSE