Interface Authoriser

All Known Implementing Classes:
FileAuthoriser, LdapAuthoriser, SingleFileAuthoriser

public interface Authoriser
Interface for classes providing an authorisation service for the GDA
  • Field Details

    • AUTHORISERCLASS_PROPERTY

      static final String AUTHORISERCLASS_PROPERTY
      The java property to use to define which class of Authoriser to use
      See Also:
    • DEFAULT_AUTHORISER

      static final String DEFAULT_AUTHORISER
      The default java property if none defined.
      See Also:
    • DEFAULT_LEVEL_PROPERTY

      static final String DEFAULT_LEVEL_PROPERTY
      The java property which defines the default authorisation level for a user if not explicitly listed.
      See Also:
    • DEFAULT_LEVEL

      static final int DEFAULT_LEVEL
      See Also:
    • DEFAULT_STAFF_LEVEL_PROPERTY

      static final String DEFAULT_STAFF_LEVEL_PROPERTY
      The java property which defines the default authorisation level for a member of staff if not explicitly listed.
      See Also:
    • DEFAULT_STAFF_LEVEL

      static final int DEFAULT_STAFF_LEVEL
      See Also:
  • Method Details

    • getAuthorisationLevel

      int getAuthorisationLevel(String username)
      Parameters:
      username -
      Returns:
      the authorisation level for the given username for this GDA installation
    • getDefaultPermissions

      default int getDefaultPermissions(String username)
    • isLocalStaff

      boolean isLocalStaff(String username)
      Returns true if the username is a member of facility staff and should have elevated privileges over users. Any accounts used for beamline testing/commissioning should also return true when using this method.
      Parameters:
      username -
      Returns:
      the username is in a separate list for beamline staff