Class AssignmentAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.AssignmentAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for Flight Assignments.
- Since:
- 1.0
- Version:
- 8.6
- 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 if the user can create available Flight Assignments (assignments for other people).booleanReturns if the Assignment can be deleted.booleanReturns if the Assignment can be released.booleanReturns if the Assignment can be reserved.voidvalidate()Calculates access rights.Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
AssignmentAccessControl
Initializes the Access Controller.- Parameters:
ctx- the Command contextai- the Assignment Info object
-
-
Method Details
-
validate
-
getCanCreateAvailable
public boolean getCanCreateAvailable()Returns if the user can create available Flight Assignments (assignments for other people).- Returns:
- TRUE if the user can create avilable Assignments, otherwise FALSE
-
getCanReserve
public boolean getCanReserve()Returns if the Assignment can be reserved.- Returns:
- TRUE if the Assignment can be reserved, otherwise FALSE
-
getCanRelease
public boolean getCanRelease()Returns if the Assignment can be released.- Returns:
- TRUE if the Assignment can be released, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns if the Assignment can be deleted.- Returns:
- TRUE if the Assignment can be deleted, otherwise FALSE
-