public static enum AlertUserIdentity.UserPermission extends java.lang.Enum<AlertUserIdentity.UserPermission>
Enum Constant and Description |
---|
MODIFY_ALERTS
the user can modify existing alerts of this group
|
MODIFY_GROUP
the user can modify the alert group
|
POST_ALERT
the user can post new alerts into this group
|
READ_ALERTS
the user can read alerts that are in this group
|
READ_GROUP
user can read the alert group details, including group users
|
Modifier and Type | Method and Description |
---|---|
static AlertUserIdentity.UserPermission |
fromInt(int value) |
int |
toInt() |
static AlertUserIdentity.UserPermission |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AlertUserIdentity.UserPermission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlertUserIdentity.UserPermission READ_ALERTS
public static final AlertUserIdentity.UserPermission POST_ALERT
public static final AlertUserIdentity.UserPermission MODIFY_ALERTS
public static final AlertUserIdentity.UserPermission READ_GROUP
public static final AlertUserIdentity.UserPermission MODIFY_GROUP
public static AlertUserIdentity.UserPermission[] values()
for (AlertUserIdentity.UserPermission c : AlertUserIdentity.UserPermission.values()) System.out.println(c);
public static AlertUserIdentity.UserPermission 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 toInt()
public static AlertUserIdentity.UserPermission fromInt(int value) throws java.lang.IllegalArgumentException
value
- java.lang.IllegalArgumentException
- on bad valueCopyright © 2015-2018 Tampere University of Technology, Pori Department.