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 org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes the access controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether a new Check Ride script can be created.boolean
Returns whether the Check Ride script can be deleted.boolean
Returns whether the Check Ride script can be edited.void
validate()
Calculates access rights.Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
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:
validate
in 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
-