Class SELCALAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.SELCALAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for SELCAL codes.
- Since:
- 1.0
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionSELCALAccessControl
(SecurityContext ctx, SelectCall sc) Initializes the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if the SELCAL code can be released.boolean
Returns if the SELCAL code can be reserved.void
Marks all additional SELCAL codes as unavailable.void
validate()
Calculates access rights.Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
SELCALAccessControl
Initializes the Access Controller.- Parameters:
ctx
- the security contextsc
- the SELCAL bean
-
-
Method Details
-
validate
-
getCanReserve
public boolean getCanReserve()Returns if the SELCAL code can be reserved.- Returns:
- TRUE if the code can be reserved, otherwise FALSE
-
getCanRelease
public boolean getCanRelease()Returns if the SELCAL code can be released.- Returns:
- TRUE if the code can be released, otherwise FALSE
-