Enum PermissionRole
- java.lang.Object
-
- java.lang.Enum<PermissionRole>
-
- org.springframework.social.google.api.calendar.PermissionRole
-
- All Implemented Interfaces:
Serializable,Comparable<PermissionRole>
public enum PermissionRole extends Enum<PermissionRole>
Enumeration representing a user permission role in Google Calendar.- Author:
- Martin Wink
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FREE_BUSY_READER"freeBusyReader" - Provides read access to free/busy information.OWNER"owner" - Provides ownership of the calendar.READER"reader" - Provides read access to the calendar.WRITER"writer" - Provides read and write access to the calendar.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PermissionRolevalueOf(String name)Returns the enum constant of this type with the specified name.static PermissionRole[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FREE_BUSY_READER
public static final PermissionRole FREE_BUSY_READER
"freeBusyReader" - Provides read access to free/busy information.
-
READER
public static final PermissionRole READER
"reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
-
WRITER
public static final PermissionRole WRITER
"writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
-
OWNER
public static final PermissionRole OWNER
"owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
-
-
Method Detail
-
values
public static PermissionRole[] 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 (PermissionRole c : PermissionRole.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PermissionRole 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
-
-