public enum Role extends java.lang.Enum<Role> implements SecurityElement
| Enum Constant and Description |
|---|
ADMIN
Administrators have this role, and may have other more specific roles as well, such as
GLOBAL_ADMIN or
NETWORK_ADMIN. |
ALIAS_OPERATOR
An operator without group, that is, an alias of the own member
|
BROKER
A broker is someone who can manage other users, and eventually receive commissions.
IMPORTANT: All brokers also have the MEMBER role. |
GLOBAL_ADMIN
Administrators in the special global system administrators group have this role.
|
MEMBER
A member is a regular user.
|
NETWORK_ADMIN
Administrators in the special network system administrators group have this role.
|
OPERATOR
An operator is a "sub-user" created by a member to manage his data.
|
RESTRICTED_OPERATOR
An operator with group, that is, with restricted permissions
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isUserManager()
Returns whether this role an user manager (admin or broker)
|
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 ADMIN
GLOBAL_ADMIN or
NETWORK_ADMIN.public static final Role GLOBAL_ADMIN
public static final Role NETWORK_ADMIN
public static final Role BROKER
MEMBER role.public static final Role MEMBER
public static final Role OPERATOR
MEMBER
role.public static final Role ALIAS_OPERATOR
public static final Role RESTRICTED_OPERATOR
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[] userManager()
public boolean isUserManager()