public final class Permission extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Drive API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Permission() |
| Modifier and Type | Method and Description |
|---|---|
Permission |
clone() |
Boolean |
getAllowFileDiscovery()
Whether the permission allows the file to be discovered through search.
|
String |
getDisplayName()
A displayable name for users, groups or domains.
|
String |
getDomain()
The domain to which this permission refers.
|
String |
getEmailAddress()
The email address of the user or group to which this permission refers.
|
DateTime |
getExpirationTime()
The time at which this permission will expire (RFC 3339 date-time).
|
String |
getId()
The ID of this permission.
|
String |
getKind()
Identifies what kind of resource this is.
|
String |
getPhotoLink()
A link to the user's profile photo, if available.
|
String |
getRole()
The role granted by this permission.
|
String |
getType()
The type of the grantee.
|
Permission |
set(String fieldName,
Object value) |
Permission |
setAllowFileDiscovery(Boolean allowFileDiscovery)
Whether the permission allows the file to be discovered through search.
|
Permission |
setDisplayName(String displayName)
A displayable name for users, groups or domains.
|
Permission |
setDomain(String domain)
The domain to which this permission refers.
|
Permission |
setEmailAddress(String emailAddress)
The email address of the user or group to which this permission refers.
|
Permission |
setExpirationTime(DateTime expirationTime)
The time at which this permission will expire (RFC 3339 date-time).
|
Permission |
setId(String id)
The ID of this permission.
|
Permission |
setKind(String kind)
Identifies what kind of resource this is.
|
Permission |
setPhotoLink(String photoLink)
A link to the user's profile photo, if available.
|
Permission |
setRole(String role)
The role granted by this permission.
|
Permission |
setType(String type)
The type of the grantee.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic Boolean getAllowFileDiscovery()
null for nonepublic Permission setAllowFileDiscovery(Boolean allowFileDiscovery)
allowFileDiscovery - allowFileDiscovery or null for nonepublic String getDisplayName()
null for nonepublic Permission setDisplayName(String displayName)
displayName - displayName or null for nonepublic String getDomain()
null for nonepublic Permission setDomain(String domain)
domain - domain or null for nonepublic String getEmailAddress()
null for nonepublic Permission setEmailAddress(String emailAddress)
emailAddress - emailAddress or null for nonepublic DateTime getExpirationTime()
null for nonepublic Permission setExpirationTime(DateTime expirationTime)
expirationTime - expirationTime or null for nonepublic String getId()
null for nonepublic Permission setId(String id)
id - id or null for nonepublic String getKind()
null for nonepublic Permission setKind(String kind)
kind - kind or null for nonepublic String getPhotoLink()
null for nonepublic Permission setPhotoLink(String photoLink)
photoLink - photoLink or null for nonepublic String getRole()
null for nonepublic Permission setRole(String role)
role - role or null for nonepublic String getType()
null for nonepublic Permission setType(String type)
type - type or null for nonepublic Permission set(String fieldName, Object value)
set in class GenericJsonpublic Permission clone()
clone in class GenericJson