Modifier and Type | Method and Description |
---|---|
static RoleType |
fromId(java.lang.Integer id) |
java.lang.Integer |
getId() |
abstract java.lang.Integer |
permissionValue(PermissionType type,
java.lang.String target) |
static RoleType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RoleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RoleType STANDARD
public static final RoleType SUPER
public static final RoleType READONLY
public static final RoleType DENYING
public static RoleType[] values()
for (RoleType c : RoleType.values()) System.out.println(c);
public static RoleType 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 java.lang.Integer getId()
public static RoleType fromId(java.lang.Integer id)
public abstract java.lang.Integer permissionValue(PermissionType type, java.lang.String target)