Enum PermissionRequestAction
- java.lang.Object
-
- java.lang.Enum<PermissionRequestAction>
-
- com.blackberry.workspaces.sdk.api.enums.PermissionRequestAction
-
- All Implemented Interfaces:
Serializable
,Comparable<PermissionRequestAction>
public enum PermissionRequestAction extends Enum<PermissionRequestAction>
An enum of actions for handling permission requests
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PermissionRequestAction
valueOf(String name)
Returns the enum constant of this type with the specified name.static PermissionRequestAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final PermissionRequestAction NONE
used to make sure ordinal in db starts from 1
-
DENIED
public static final PermissionRequestAction DENIED
Denied
-
APPROVED
public static final PermissionRequestAction APPROVED
Approved
-
OVERRIDEN
public static final PermissionRequestAction OVERRIDEN
Overridden
-
INVALID
public static final PermissionRequestAction INVALID
used for requests no longer valid since the object of the request is permanently deleted
-
-
Method Detail
-
values
public static PermissionRequestAction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PermissionRequestAction c : PermissionRequestAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PermissionRequestAction valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-