Class ErrorLogAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.ErrorLogAccessControl
- All Implemented Interfaces:
Serializable
An access controller for ACARS client error reports.
- Since:
- 9.1
- Version:
- 9.1
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionErrorLogAccessControl
(SecurityContext ctx, ACARSError err) Initializes the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether the user can delete an Error Report.boolean
Returns whether the user can read ths new Error Report.boolean
Returns whether the user can submit a new Error Report.void
validate()
Calculates access control rightsMethods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
ErrorLogAccessControl
Initializes the Access Controller.- Parameters:
ctx
- the SecurityContexterr
- the ACARSError
-
-
Method Details
-
validate
public void validate()Description copied from class:AccessControl
Calculates access control rights- Specified by:
validate
in classAccessControl
-
getCanSubmit
public boolean getCanSubmit()Returns whether the user can submit a new Error Report.- Returns:
- TRUE if a report can be submitted, otherwise FALSE
-
getCanRead
public boolean getCanRead()Returns whether the user can read ths new Error Report.- Returns:
- TRUE if the report can be read, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns whether the user can delete an Error Report.- Returns:
- TRUE if a report can be deleted, otherwise FALSE
-