Class EliteAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.EliteAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for Elite program operations.
- Since:
- 9.2
- Version:
- 9.2
- 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 whether an EliteLevel can be deleted.boolean
Returns whether an EliteLevel can be edited.boolean
Returns whether a Pilot's EliteStatus can be recalculated.void
validate()
Calculates access control rightsMethods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
EliteAccessControl
Initializes the Access Controller.- Parameters:
ctx
- the security context
-
-
Method Details
-
validate
Description copied from class:AccessControl
Calculates access control rights- Specified by:
validate
in classAccessControl
- Throws:
AccessControlException
- if no access at all is possible
-
getCanEdit
public boolean getCanEdit()Returns whether an EliteLevel can be edited.- Returns:
- TRUE if editable, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns whether an EliteLevel can be deleted.- Returns:
- TRUE if deletable, otherwise FALSE
-
getCanRecalculate
public boolean getCanRecalculate()Returns whether a Pilot's EliteStatus can be recalculated.- Returns:
- TRUE if it can be recalculated, otherwise FALSE
-