Enum OrganizationRole
- java.lang.Object
-
- java.lang.Enum<OrganizationRole>
-
- com.blackberry.workspaces.api.sdk.enums.OrganizationRole
-
- All Implemented Interfaces:
Serializable
,Comparable<OrganizationRole>
public enum OrganizationRole extends Enum<OrganizationRole>
An enum of organization roles
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADMIN
AdminSUBSCRIBER
Subscriber
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OrganizationRole
valueOf(String name)
Returns the enum constant of this type with the specified name.static OrganizationRole[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUBSCRIBER
public static final OrganizationRole SUBSCRIBER
Subscriber
-
ADMIN
public static final OrganizationRole ADMIN
Admin
-
-
Method Detail
-
values
public static OrganizationRole[] 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 (OrganizationRole c : OrganizationRole.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OrganizationRole 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
-
-