Class ChartAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.ChartAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for Approach Charts.
- Since:
- 1.0
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class AccessControl
_ctx -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if a new Approach Chart can be created.booleanReturns if an Approach Chart can be deleted.booleanReturns if an Approach Chart can be edited.voidvalidate()Calculates access rights.Methods inherited from class AccessControl
validateContext
-
Constructor Details
-
ChartAccessControl
Initializes the Access Controller.- Parameters:
ctx- the Command context
-
-
Method Details
-
validate
Calculates access rights.- Specified by:
validatein classAccessControl- Throws:
AccessControlException- if the user is unauthenticated
-
getCanCreate
public boolean getCanCreate()Returns if a new Approach Chart can be created.- Returns:
- TRUE if a new Chart can be created, otherwise FALSE
-
getCanEdit
public boolean getCanEdit()Returns if an Approach Chart can be edited.- Returns:
- TRUE if the Chart can be edited, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns if an Approach Chart can be deleted.- Returns:
- TRUE if the Chart can be deleted, otherwise FALSE
-