Class AcademyRideScriptAccessControl

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

public class AcademyRideScriptAccessControl extends AccessControl
An access controller for Fight Academy Check Ride scripts.
Since:
3.4
Version:
3.4
Author:
Luke
See Also:
  • Constructor Details

    • AcademyRideScriptAccessControl

      public AcademyRideScriptAccessControl(SecurityContext ctx, AcademyRideScript sc)
      Initializes the access controller.
      Parameters:
      ctx - the security context
      sc - the AcademyRideScript bean to validate
  • Method Details

    • validate

      public void validate() throws AccessControlException
      Calculates access rights.
      Specified by:
      validate in class AccessControl
      Throws:
      AccessControlException - if we cannot read the script
    • getCanCreate

      public boolean getCanCreate()
      Returns whether a new Check Ride script can be created.
      Returns:
      TRUE if a script can be created, otherwise FALSE
    • getCanEdit

      public boolean getCanEdit()
      Returns whether the Check Ride script can be edited.
      Returns:
      TRUE if the script can be edited, otherwise FALSE
    • getCanDelete

      public boolean getCanDelete()
      Returns whether the Check Ride script can be deleted.
      Returns:
      TRUE if the script can be deleted, otherwise FALSE