public enum Role extends java.lang.Enum<Role> implements SecurityElement
| Enum Constant and Description |
|---|
ADMIN
each admin has this role, and may have other more specific roles as well, such as NETWORK_ADMIN
|
BROKER
A broker is someone who can manage non related users.
|
GLOBAL_ADMIN |
GUEST |
MEMBER
A member role is defined as someone who can login with a username and who cannot manage other non-related users.
|
NETWORK_ADMIN |
OPERATOR |
SYSTEM |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isUser()
Returns whether this role is a specific user type (admin, member, broker or operator)
|
boolean |
isUserManager()
Returns whether this role an user manager (admin or broker)
|
static Role[] |
user()
Returns all roles related to user
|
static Role[] |
userAndSpecialAdmins()
Returns all roles related to user, plus the special admin roles
|
static Role[] |
userManager()
Returns all roles which manages other users
|
static Role |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Role GLOBAL_ADMIN
public static final Role NETWORK_ADMIN
public static final Role ADMIN
public static final Role MEMBER
public static final Role BROKER
public static final Role OPERATOR
public static final Role SYSTEM
public static final Role GUEST
public static Role[] values()
for (Role c : Role.values()) System.out.println(c);
public static Role valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static Role[] user()
public static Role[] userAndSpecialAdmins()
public static Role[] userManager()
public boolean isUser()
public boolean isUserManager()