public enum ServiceRole extends Enum<ServiceRole>
Enum Constant and Description |
---|
admin
admin of a service
|
user
user of a service (might include admins)
|
Modifier and Type | Method and Description |
---|---|
static Collection<Field> |
allFieldsForGroupQuery()
get all fields for any role
|
abstract Collection<Field> |
fieldsForGroupQuery()
e.g.
|
static ServiceRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServiceRole |
valueOfIgnoreCase(String string,
boolean exceptionOnNull)
convert a string to the service role enum
|
static ServiceRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceRole admin
public static final ServiceRole user
public static ServiceRole[] values()
for (ServiceRole c : ServiceRole.values()) System.out.println(c);
public static ServiceRole valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Collection<Field> allFieldsForGroupQuery()
public abstract Collection<Field> fieldsForGroupQuery()
public static ServiceRole valueOfIgnoreCase(String string, boolean exceptionOnNull)
string
- exceptionOnNull
- Copyright © 2016 Internet2. All rights reserved.