Class EquipmentRideScriptAccessControl

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

public class EquipmentRideScriptAccessControl extends AccessControl
An access controller for Equipment Program Check Ride scripts.
Since:
1.0
Version:
8.6
Author:
Luke
See Also:
  • Constructor Details

    • EquipmentRideScriptAccessControl

      public EquipmentRideScriptAccessControl(SecurityContext ctx, EquipmentRideScript sc)
      Initializes the access controller.
      Parameters:
      ctx - the security context
      sc - the CheckRideScript 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