Package org.gbif.api.vocabulary
Enum UserRole
- java.lang.Object
-
- java.lang.Enum<UserRole>
-
- org.gbif.api.vocabulary.UserRole
-
- All Implemented Interfaces:
Serializable
,Comparable<UserRole>
public enum UserRole extends Enum<UserRole>
Roles here shall not be defined inAppRole
(validated by unit test).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADMIN
Deprecated.COL_ADMIN
A Catalogue of Life administrator with all permissions.COL_EDITOR
A Catalogue of Life editor with permissions to manage datasets and assemblies.DATA_REPO_USER
A user that has permissions to create data packages.EDITOR
Deprecated.GRSCICOLL_ADMIN
A GRSciColl administrator with all permissions.GRSCICOLL_EDITOR
A GRSciColl editor with limited permissions.GRSCICOLL_MEDIATOR
A GRSciColl mediator with more permissions than an editor but less than an admin.IDIGBIO_GRSCICOLL_EDITOR
Deprecated.INVITED_TESTER
A user invited to test particular restricted features.REGISTRY_ADMIN
A registry administrator with all permissions, often used by internal GBIF applications and secretariat staff.REGISTRY_EDITOR
A registry editor with limited permissions.USER
A regular, registered GBIF user.VOCABULARY_ADMIN
A vocabulary administrator with all permissions.VOCABULARY_EDITOR
A vocabulary editor with limited permissions.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UserRole
valueOf(String name)
Returns the enum constant of this type with the specified name.static UserRole[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADMIN
@Deprecated public static final UserRole ADMIN
Deprecated.A drupal system administrator. To be removed when Drupal is decommissioned.
-
EDITOR
@Deprecated public static final UserRole EDITOR
Deprecated.A drupal news and content editor. To be removed when Drupal is decommissioned.
-
INVITED_TESTER
public static final UserRole INVITED_TESTER
A user invited to test particular restricted features.
-
REGISTRY_ADMIN
public static final UserRole REGISTRY_ADMIN
A registry administrator with all permissions, often used by internal GBIF applications and secretariat staff.
-
REGISTRY_EDITOR
public static final UserRole REGISTRY_EDITOR
A registry editor with limited permissions. Exact permissions are handled by the registry itself. Often used for external applications.
-
DATA_REPO_USER
public static final UserRole DATA_REPO_USER
A user that has permissions to create data packages.
-
COL_ADMIN
public static final UserRole COL_ADMIN
A Catalogue of Life administrator with all permissions.
-
COL_EDITOR
public static final UserRole COL_EDITOR
A Catalogue of Life editor with permissions to manage datasets and assemblies. Exact permissions are handled by the CoL itself.
-
VOCABULARY_ADMIN
public static final UserRole VOCABULARY_ADMIN
A vocabulary administrator with all permissions.
-
VOCABULARY_EDITOR
public static final UserRole VOCABULARY_EDITOR
A vocabulary editor with limited permissions.
-
GRSCICOLL_ADMIN
public static final UserRole GRSCICOLL_ADMIN
A GRSciColl administrator with all permissions.
-
GRSCICOLL_EDITOR
public static final UserRole GRSCICOLL_EDITOR
A GRSciColl editor with limited permissions.
-
GRSCICOLL_MEDIATOR
public static final UserRole GRSCICOLL_MEDIATOR
A GRSciColl mediator with more permissions than an editor but less than an admin.
-
IDIGBIO_GRSCICOLL_EDITOR
@Deprecated public static final UserRole IDIGBIO_GRSCICOLL_EDITOR
Deprecated.A grscicoll editor with permissions for some iDigBio-only operations.
-
-
Method Detail
-
values
public static UserRole[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UserRole c : UserRole.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UserRole valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-