public enum CoreSecurityRoles extends Enum<CoreSecurityRoles>
Modifier and Type | Method and Description |
---|---|
static CoreSecurityRoles |
fromKey(String role) |
static String[] |
getAllRolesAsStringArray()
Helper class that will return all role names as a string array.
|
String |
getKey() |
String |
getName() |
static CoreSecurityRoles |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CoreSecurityRoles[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CoreSecurityRoles VIEW
public static final CoreSecurityRoles CREATE
public static final CoreSecurityRoles MANAGE
public static CoreSecurityRoles[] values()
for (CoreSecurityRoles c : CoreSecurityRoles.values()) System.out.println(c);
public static CoreSecurityRoles 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 CoreSecurityRoles fromKey(String role)
public static String[] getAllRolesAsStringArray()
public String getKey()
public String getName()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.