Package org.gcube.oidc
Enum D4ScienceMappings.Role
- java.lang.Object
-
- java.lang.Enum<D4ScienceMappings.Role>
-
- org.gcube.oidc.D4ScienceMappings.Role
-
- All Implemented Interfaces:
Serializable,Comparable<D4ScienceMappings.Role>
- Enclosing class:
- D4ScienceMappings
public static enum D4ScienceMappings.Role extends Enum<D4ScienceMappings.Role>
D4Science roles.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCOUNTING_MANAGERAccounting manager.CATALOGUE_ADMINCatalogue admin.CATALOGUE_EDITORCatalogue editor.CATALOGUE_MANAGERCatalogue manager.CATALOGUE_MODERATORCatalogue moderator.DATA_EDITORData editor.DATA_MANAGERData manager.DATAMINER_MANAGERDataminer manager.INFRASTRUCTURE_MANAGERInfrastructure manager.MEMBERMember.VO_ADMINVO admin.VRE_DESIGNERVRE designer.VRE_MANAGERVRE manager.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasString()Returns the role as string.static booleanexists(String role)Checks if a role exists.static Set<String>stringValues()Returns the string values of the roles.static D4ScienceMappings.RolevalueOf(String name)Returns the enum constant of this type with the specified name.static D4ScienceMappings.Role[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MEMBER
public static final D4ScienceMappings.Role MEMBER
Member.
-
ACCOUNTING_MANAGER
public static final D4ScienceMappings.Role ACCOUNTING_MANAGER
Accounting manager.
-
CATALOGUE_ADMIN
public static final D4ScienceMappings.Role CATALOGUE_ADMIN
Catalogue admin.
-
CATALOGUE_EDITOR
public static final D4ScienceMappings.Role CATALOGUE_EDITOR
Catalogue editor.
-
CATALOGUE_MANAGER
public static final D4ScienceMappings.Role CATALOGUE_MANAGER
Catalogue manager.
-
CATALOGUE_MODERATOR
public static final D4ScienceMappings.Role CATALOGUE_MODERATOR
Catalogue moderator.
-
DATA_EDITOR
public static final D4ScienceMappings.Role DATA_EDITOR
Data editor.
-
DATA_MANAGER
public static final D4ScienceMappings.Role DATA_MANAGER
Data manager.
-
DATAMINER_MANAGER
public static final D4ScienceMappings.Role DATAMINER_MANAGER
Dataminer manager.
-
INFRASTRUCTURE_MANAGER
public static final D4ScienceMappings.Role INFRASTRUCTURE_MANAGER
Infrastructure manager.
-
VO_ADMIN
public static final D4ScienceMappings.Role VO_ADMIN
VO admin.
-
VRE_DESIGNER
public static final D4ScienceMappings.Role VRE_DESIGNER
VRE designer.
-
VRE_MANAGER
public static final D4ScienceMappings.Role VRE_MANAGER
VRE manager.
-
-
Method Detail
-
values
public static D4ScienceMappings.Role[] 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 (D4ScienceMappings.Role c : D4ScienceMappings.Role.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static D4ScienceMappings.Role 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
-
asString
public String asString()
Returns the role as string.- Returns:
- the role as string.
-
stringValues
public static Set<String> stringValues()
Returns the string values of the roles.- Returns:
- the string values of the roles.
-
exists
public static boolean exists(String role)
Checks if a role exists.- Parameters:
role- the role to check.- Returns:
- true if the role exists, false otherwise.
-
-