Class CharterRequestAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.CharterRequestAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for Charter flight Requests.
- Since:
- 10.0
- Version:
- 10.0
- 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 TypeMethodDescriptionboolean
Returns if the user can dispose of this Charter Request.boolean
Returns if the user can edit this Charter Request.boolean
Returns if the user can view this Charter Request.void
validate()
Calculates access control rightsMethods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
CharterRequestAccessControl
Initializes the Access Controller.- Parameters:
ctx
- the SecurityContextcr
- the CharterRequest
-
-
Method Details
-
validate
public void validate()Description copied from class:AccessControl
Calculates access control rights- Specified by:
validate
in classAccessControl
-
getCanView
public boolean getCanView()Returns if the user can view this Charter Request.- Returns:
- TRUE if the user can view the request, otherwise FALSE
-
getCanEdit
public boolean getCanEdit()Returns if the user can edit this Charter Request.- Returns:
- TRUE if the user can edit the request, otherwise FALSE
-
getCanDispose
public boolean getCanDispose()Returns if the user can dispose of this Charter Request.- Returns:
- TRUE if the user can dispose of the request, otherwise FALSE
-