Package org.openremote.model.security
Enum Class ClientRole
- All Implemented Interfaces:
Serializable
,Comparable<ClientRole>
,Constable
Roles available for our client application on Keycloak.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ClientRole[]
protected final String
protected final String
-
Method Summary
Modifier and TypeMethodDescriptionorg.keycloak.representations.idm.RoleRepresentation
getValue()
static ClientRole
Returns the enum constant of this class with the specified name.static String[]
valueOf
(ClientRole... roles) Returns the enum constant of this class with the specified name.static ClientRole[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
READ_ADMIN
-
READ_LOGS
-
READ_USERS
-
READ_MAP
-
READ_ASSETS
-
READ_RULES
-
READ_INSIGHTS
-
READ_ALARMS
-
WRITE_USER
-
WRITE_ADMIN
-
WRITE_LOGS
-
WRITE_ASSETS
-
WRITE_ATTRIBUTES
-
WRITE_RULES
-
WRITE_INSIGHTS
-
WRITE_ALARMS
-
READ
-
WRITE
-
-
Field Details
-
ALL_ROLES
-
value
-
description
-
composites
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
-
getDescription
-
getComposites
-
getRepresentation
public org.keycloak.representations.idm.RoleRepresentation getRepresentation() -
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
roles
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-