Class AcademyRideScriptAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.AcademyRideScriptAccessControl
- All Implemented Interfaces:
Serializable
An access controller for Fight Academy Check Ride scripts.
- Since:
- 3.4
- Version:
- 3.4
- 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 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 org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
AcademyRideScriptAccessControl
Initializes the access controller.- Parameters:
ctx- the security contextsc- the AcademyRideScript 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
-