Package | Description |
---|---|
com.google.api.services.drive | |
com.google.api.services.drive.model |
Modifier and Type | Method and Description |
---|---|
Drive.Permissions.Insert |
Drive.Permissions.insert(String fileId,
Permission content)
Inserts a permission for a file.
|
Drive.Permissions.Patch |
Drive.Permissions.patch(String fileId,
String permissionId,
Permission content)
Updates a permission.
|
Drive.Permissions.Update |
Drive.Permissions.update(String fileId,
String permissionId,
Permission content)
Updates a permission.
|
Constructor and Description |
---|
Drive.Permissions.Insert(String fileId,
Permission content)
Inserts a permission for a file.
|
Drive.Permissions.Patch(String fileId,
String permissionId,
Permission content)
Updates a permission.
|
Drive.Permissions.Update(String fileId,
String permissionId,
Permission content)
Updates a permission.
|
Modifier and Type | Method and Description |
---|---|
Permission |
Permission.clone() |
Permission |
File.getUserPermission()
The permissions for the authenticated user on this file.
|
Permission |
Permission.set(String fieldName,
Object value) |
Permission |
Permission.setAdditionalRoles(List<String> additionalRoles)
Additional roles for this user.
|
Permission |
Permission.setAuthKey(String authKey)
The authkey parameter required for this permission.
|
Permission |
Permission.setDomain(String domain)
The domain name of the entity this permission refers to.
|
Permission |
Permission.setEmailAddress(String emailAddress)
The email address of the user this permission refers to.
|
Permission |
Permission.setEtag(String etag)
The ETag of the permission.
|
Permission |
Permission.setId(String id)
The ID of the user this permission refers to, and identical to the permissionId in the About
and Files resources.
|
Permission |
Permission.setKind(String kind)
This is always drive#permission.
|
Permission |
Permission.setName(String name)
The name for this permission.
|
Permission |
Permission.setPhotoLink(String photoLink)
A link to the profile photo, if available.
|
Permission |
Permission.setRole(String role)
The primary role for this user.
|
Permission |
Permission.setSelfLink(String selfLink)
A link back to this permission.
|
Permission |
Permission.setType(String type)
The account type.
|
Permission |
Permission.setValue(String value)
The email address or domain name for the entity.
|
Permission |
Permission.setWithLink(Boolean withLink)
Whether the link is required for this permission.
|
Modifier and Type | Method and Description |
---|---|
List<Permission> |
PermissionList.getItems()
The actual list of permissions.
|
Modifier and Type | Method and Description |
---|---|
File |
File.setUserPermission(Permission userPermission)
The permissions for the authenticated user on this file.
|
Modifier and Type | Method and Description |
---|---|
PermissionList |
PermissionList.setItems(List<Permission> items)
The actual list of permissions.
|