public enum PermissionRole extends java.lang.Enum<PermissionRole>
Enum Constant and Description |
---|
ADMIN |
NONE |
OWNER |
TEAMLEADER |
USER |
Modifier and Type | Field and Description |
---|---|
private int |
roles |
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
boolean |
hasAdminRights() |
boolean |
hasTeamleaderRights() |
boolean |
hasUserRights() |
static PermissionRole |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PermissionRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PermissionRole OWNER
public static final PermissionRole TEAMLEADER
public static final PermissionRole ADMIN
public static final PermissionRole USER
public static final PermissionRole NONE
public static PermissionRole[] values()
for (PermissionRole c : PermissionRole.values()) System.out.println(c);
public static PermissionRole 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 int getValue()
public boolean hasUserRights()
public boolean hasTeamleaderRights()
public boolean hasAdminRights()