Package gda.jython.authoriser
Interface Authoriser
- All Known Implementing Classes:
FileAuthoriser,LdapAuthoriser,SingleFileAuthoriser
public interface Authoriser
Interface for classes providing an authorisation service for the GDA
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe java property to use to define which class of Authoriser to usestatic final StringThe default java property if none defined.static final intstatic final StringThe java property which defines the default authorisation level for a user if not explicitly listed.static final intstatic final StringThe java property which defines the default authorisation level for a member of staff if not explicitly listed. -
Method Summary
Modifier and TypeMethodDescriptionintgetAuthorisationLevel(String username) default intgetDefaultPermissions(String username) booleanisLocalStaff(String username) Returns true if the username is a member of facility staff and should have elevated privileges over users.
-
Field Details
-
AUTHORISERCLASS_PROPERTY
The java property to use to define which class of Authoriser to use- See Also:
-
DEFAULT_AUTHORISER
The default java property if none defined.- See Also:
-
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
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
- Parameters:
username-- Returns:
- the authorisation level for the given username for this GDA installation
-
getDefaultPermissions
-
isLocalStaff
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
-