Enum UserEntity.UserEntityType
- java.lang.Object
-
- java.lang.Enum<UserEntity.UserEntityType>
-
- org.gcube.common.authorization.library.policies.UserEntity.UserEntityType
-
- All Implemented Interfaces:
Serializable,Comparable<UserEntity.UserEntityType>
- Enclosing class:
- UserEntity
public static enum UserEntity.UserEntityType extends Enum<UserEntity.UserEntityType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXTERNALSERVICEROLEUSER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UserEntity.UserEntityTypevalueOf(String name)Returns the enum constant of this type with the specified name.static UserEntity.UserEntityType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ROLE
public static final UserEntity.UserEntityType ROLE
-
USER
public static final UserEntity.UserEntityType USER
-
EXTERNALSERVICE
public static final UserEntity.UserEntityType EXTERNALSERVICE
-
-
Method Detail
-
values
public static UserEntity.UserEntityType[] 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 (UserEntity.UserEntityType c : UserEntity.UserEntityType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UserEntity.UserEntityType 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
-
-