public static enum OneOpsUser.Role extends Enum<OneOpsUser.Role>
Modifier and Type | Method and Description |
---|---|
String |
authority()
Authorities for this role name.
|
static OneOpsUser.Role |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OneOpsUser.Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OneOpsUser.Role USER
public static final OneOpsUser.Role ADMIN
public static final OneOpsUser.Role MGMT
public static OneOpsUser.Role[] values()
for (OneOpsUser.Role c : OneOpsUser.Role.values()) System.out.println(c);
public static OneOpsUser.Role 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 String authority()
Copyright © 2018 Walmart, Inc.. All rights reserved.