|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<UserRole>
com.terracotta.management.user.UserRole
public enum UserRole
An enumeration describing what are currently implicitly defined user roles for the application.
| Enum Constant Summary | |
|---|---|
ADMIN
|
|
OPERATOR
|
|
TERRACOTTA
|
|
| Method Summary | |
|---|---|
static UserRole |
byName(String roleName)
A convenience method for getting a UserRole by its role name. |
static Set<UserRole> |
convertRoleNames(Collection<String> roleNames)
A convenience method for converting a collection of role names to a Set of UserRole enums. |
static Set<String> |
convertRoles(Collection<UserRole> roles)
A convenience method for converting a collection of UserRoles to a Set of role names. |
String |
toString()
|
static UserRole |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static UserRole[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final UserRole ADMIN
public static final UserRole OPERATOR
public static final UserRole TERRACOTTA
| Method Detail |
|---|
public static UserRole[] values()
for (UserRole c : UserRole.values()) System.out.println(c);
public static UserRole valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static UserRole byName(String roleName)
UserRole by its role name.
roleName - to use for lookup
UserRolepublic static Set<UserRole> convertRoleNames(Collection<String> roleNames)
UserRole enums.
roleNames - to convert
Set of UserRolespublic static Set<String> convertRoles(Collection<UserRole> roles)
UserRoles to a Set of role names.
roles - to convert
Set of role namespublic String toString()
toString in class Enum<UserRole>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||