Class EquipmentRideScriptAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.EquipmentRideScriptAccessControl
- All Implemented Interfaces:
Serializable
An access controller for Equipment Program Check Ride scripts.
- Since:
- 1.0
- Version:
- 8.6
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class AccessControl
_ctx -
Constructor Summary
ConstructorsConstructorDescriptionInitializes the access controller. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether a new Check Ride script can be created.booleanReturns whether the Check Ride script can be deleted.booleanReturns whether the Check Ride script can be edited.voidvalidate()Calculates access rights.Methods inherited from class AccessControl
validateContextModifier and TypeMethodDescriptionprotected voidValidates the command context for this access controller.
-
Constructor Details
-
EquipmentRideScriptAccessControl
Initializes the access controller.- Parameters:
ctx- the security contextsc- the CheckRideScript bean to validate
-
-
Method Details
-
validate
Calculates access rights.- Specified by:
validatein classAccessControl- 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
-