Class AuthorityConstants
java.lang.Object
ubic.gemma.core.security.AuthorityConstants
Defines constants used in GrantedAuthories. An authority is basically a marker of a level of access; in Gemma this
corresponds to the authority on a 'group' of users (UserGroup). There are currently three special groups:
Administrators, Users, and Agents. Anonymous is another
Some of these values are originally set by init-entities.sql
- Version:
- $Id: AuthorityConstants.java,v 1.6 2013/08/21 23:22:22 paul Exp $
- Author:
- klc, paul
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the administrator group authority.static final StringThe name of the administrator group.static final Stringstatic final Stringstatic final StringCurators do everything an administrator does to DATA — edit designs, change a dataset's visibility, run analyses — and nothing an administrator does to the SERVER or to USER ACCOUNTS.static final Stringstatic final StringPrefix used for roles.static final StringUsed when we are running at elevated permissions.static final StringUsed when we are running at elevated permissions.static final StringThe name of the default user group authority.static final String -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ROLE_PREFIX
Prefix used for roles.Spring uses
ROLE_by default.- See Also:
-
ADMIN_GROUP_AUTHORITY
The name of the administrator group authority. All administrators must be in this group.- See Also:
-
ADMIN_GROUP_NAME
The name of the administrator group. Not the same as the group authority!- See Also:
-
USER_GROUP_AUTHORITY
The name of the default user group authority. All authenticated users should be in this group or in the administrator group.- See Also:
-
USER_GROUP_NAME
- See Also:
-
RUN_AS_ADMIN_AUTHORITY
Used when we are running at elevated permissions.- See Also:
-
RUN_AS_USER_AUTHORITY
Used when we are running at elevated permissions.- See Also:
-
CURATOR_GROUP_AUTHORITY
Curators do everything an administrator does to DATA — edit designs, change a dataset's visibility, run analyses — and nothing an administrator does to the SERVER or to USER ACCOUNTS. Those two exclusions are enforced at the REST layer, where the routes that manage caches, indices, ontologies, sessions, pipeline batches and user accounts keephasAuthority('GROUP_ADMIN'); everything else was widened tohasAuthority('GROUP_CURATOR'), which an administrator satisfies through the role hierarchy (Paul, 2026-09-05: "really nothing other than user admin, and I guess server ops").- See Also:
-
CURATOR_GROUP_NAME
- See Also:
-
AGENT_GROUP_AUTHORITY
- See Also:
-
AGENT_GROUP_NAME
- See Also:
-
-
Constructor Details
-
AuthorityConstants
public AuthorityConstants()
-