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 org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if a new Approach Chart can be created.boolean
Returns if an Approach Chart can be deleted.boolean
Returns if an Approach Chart can be edited.void
validate()
Calculates access rights.Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
ChartAccessControl
Initializes the Access Controller.- Parameters:
ctx
- the Command context
-
-
Method Details
-
validate
Calculates access rights.- Specified by:
validate
in 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
-