Class ErrorLogAccessControl

java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.ErrorLogAccessControl
All Implemented Interfaces:
Serializable

public class ErrorLogAccessControl extends AccessControl
An access controller for ACARS client error reports.
Since:
9.1
Version:
9.1
Author:
Luke
See Also:
  • Constructor Details

    • ErrorLogAccessControl

      public ErrorLogAccessControl(SecurityContext ctx, ACARSError err)
      Initializes the Access Controller.
      Parameters:
      ctx - the SecurityContext
      err - the ACARSError
  • Method Details

    • validate

      public void validate()
      Description copied from class: AccessControl
      Calculates access control rights
      Specified by:
      validate in class AccessControl
    • 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