Enum Class ServiceRole
- All Implemented Interfaces:
Serializable
,Comparable<ServiceRole>
,Constable
role in a service, admin (update or admin in service) or user (member of group/role or assignee of permissions)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<Field>
get all fields for any roleabstract Collection<Field>
e.g.static ServiceRole
Returns the enum constant of this class with the specified name.static ServiceRole
valueOfIgnoreCase
(String string, boolean exceptionOnNull) convert a string to the service role enumstatic ServiceRole[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
admin
admin of a service -
user
user of a service (might include admins)
-
-
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
-
allFieldsForGroupQuery
get all fields for any role- Returns:
- the fields
-
fieldsForGroupQuery
e.g. return the fields for this service role- Returns:
- the fields for the query
-
valueOfIgnoreCase
convert a string to the service role enum- Parameters:
string
-exceptionOnNull
-- Returns:
- service role
-