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 AccessControl
_ctx -
Constructor Summary
ConstructorsConstructorDescriptionErrorLogAccessControl(SecurityContext ctx, ACARSError err) Initializes the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the user can delete an Error Report.booleanReturns whether the user can read ths new Error Report.booleanReturns whether the user can submit a new Error Report.voidvalidate()Calculates access control rightsMethods inherited from class 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:AccessControlCalculates access control rights- Specified by:
validatein 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
-