Enum PermissionRole
- java.lang.Object
-
- java.lang.Enum<PermissionRole>
-
- org.springframework.social.google.api.drive.PermissionRole
-
- All Implemented Interfaces:
Serializable,Comparable<PermissionRole>
public enum PermissionRole extends Enum<PermissionRole>
Enum representing a user permission role to a file in Google Drive- Author:
- Gabriel Axel
-
-
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
-
OWNER
public static final PermissionRole OWNER
-
READER
public static final PermissionRole READER
-
WRITER
public static final PermissionRole WRITER
-
-
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
-
-