Enum PermissionRequestType
- java.lang.Object
-
- java.lang.Enum<PermissionRequestType>
-
- com.blackberry.workspaces.api.sdk.enums.PermissionRequestType
-
- All Implemented Interfaces:
Serializable
,Comparable<PermissionRequestType>
public enum PermissionRequestType extends Enum<PermissionRequestType>
An enum of permission request types
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMENT
CommentNONE
used to make sure ordinal in db starts from 1PRINT
PrintTIME_EXTENSION
Time extensionVIEW
View
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PermissionRequestType
valueOf(String name)
Returns the enum constant of this type with the specified name.static PermissionRequestType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final PermissionRequestType NONE
used to make sure ordinal in db starts from 1
-
VIEW
public static final PermissionRequestType VIEW
View
-
TIME_EXTENSION
public static final PermissionRequestType TIME_EXTENSION
Time extension
-
PRINT
public static final PermissionRequestType PRINT
Print
-
COMMENT
public static final PermissionRequestType COMMENT
Comment
-
-
Method Detail
-
values
public static PermissionRequestType[] 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 (PermissionRequestType c : PermissionRequestType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PermissionRequestType 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
-
-