Package | Description |
---|---|
com.google.api.services.drive.model |
Modifier and Type | Method and Description |
---|---|
File.Capabilities |
File.Capabilities.clone() |
File.Capabilities |
File.getCapabilities()
Capabilities the current user has on this file.
|
File.Capabilities |
File.Capabilities.set(String fieldName,
Object value) |
File.Capabilities |
File.Capabilities.setCanAcceptOwnership(Boolean canAcceptOwnership)
Whether the current user is the pending owner of the file.
|
File.Capabilities |
File.Capabilities.setCanAddChildren(Boolean canAddChildren)
Whether the current user can add children to this folder.
|
File.Capabilities |
File.Capabilities.setCanAddFolderFromAnotherDrive(Boolean canAddFolderFromAnotherDrive)
Whether the current user can add a folder from another drive (different shared drive or My
Drive) to this folder.
|
File.Capabilities |
File.Capabilities.setCanAddMyDriveParent(Boolean canAddMyDriveParent)
Whether the current user can add a parent for the item without removing an existing parent in
the same request.
|
File.Capabilities |
File.Capabilities.setCanChangeCopyRequiresWriterPermission(Boolean canChangeCopyRequiresWriterPermission)
Whether the current user can change the copyRequiresWriterPermission restriction of this file.
|
File.Capabilities |
File.Capabilities.setCanChangeSecurityUpdateEnabled(Boolean canChangeSecurityUpdateEnabled)
Whether the current user can change the securityUpdateEnabled field on link share metadata.
|
File.Capabilities |
File.Capabilities.setCanChangeViewersCanCopyContent(Boolean canChangeViewersCanCopyContent)
Deprecated
|
File.Capabilities |
File.Capabilities.setCanComment(Boolean canComment)
Whether the current user can comment on this file.
|
File.Capabilities |
File.Capabilities.setCanCopy(Boolean canCopy)
Whether the current user can copy this file.
|
File.Capabilities |
File.Capabilities.setCanDelete(Boolean canDelete)
Whether the current user can delete this file.
|
File.Capabilities |
File.Capabilities.setCanDeleteChildren(Boolean canDeleteChildren)
Whether the current user can delete children of this folder.
|
File.Capabilities |
File.Capabilities.setCanDownload(Boolean canDownload)
Whether the current user can download this file.
|
File.Capabilities |
File.Capabilities.setCanEdit(Boolean canEdit)
Whether the current user can edit this file.
|
File.Capabilities |
File.Capabilities.setCanListChildren(Boolean canListChildren)
Whether the current user can list the children of this folder.
|
File.Capabilities |
File.Capabilities.setCanModifyContent(Boolean canModifyContent)
Whether the current user can modify the content of this file.
|
File.Capabilities |
File.Capabilities.setCanModifyContentRestriction(Boolean canModifyContentRestriction)
Whether the current user can modify restrictions on content of this file.
|
File.Capabilities |
File.Capabilities.setCanModifyLabels(Boolean canModifyLabels)
Whether the current user can modify the labels on this file.
|
File.Capabilities |
File.Capabilities.setCanMoveChildrenOutOfDrive(Boolean canMoveChildrenOutOfDrive)
Whether the current user can move children of this folder outside of the shared drive.
|
File.Capabilities |
File.Capabilities.setCanMoveChildrenOutOfTeamDrive(Boolean canMoveChildrenOutOfTeamDrive)
Deprecated - use canMoveChildrenOutOfDrive instead.
|
File.Capabilities |
File.Capabilities.setCanMoveChildrenWithinDrive(Boolean canMoveChildrenWithinDrive)
Whether the current user can move children of this folder within this drive.
|
File.Capabilities |
File.Capabilities.setCanMoveChildrenWithinTeamDrive(Boolean canMoveChildrenWithinTeamDrive)
Deprecated - use canMoveChildrenWithinDrive instead.
|
File.Capabilities |
File.Capabilities.setCanMoveItemIntoTeamDrive(Boolean canMoveItemIntoTeamDrive)
Deprecated - use canMoveItemOutOfDrive instead.
|
File.Capabilities |
File.Capabilities.setCanMoveItemOutOfDrive(Boolean canMoveItemOutOfDrive)
Whether the current user can move this item outside of this drive by changing its parent.
|
File.Capabilities |
File.Capabilities.setCanMoveItemOutOfTeamDrive(Boolean canMoveItemOutOfTeamDrive)
Deprecated - use canMoveItemOutOfDrive instead.
|
File.Capabilities |
File.Capabilities.setCanMoveItemWithinDrive(Boolean canMoveItemWithinDrive)
Whether the current user can move this item within this drive.
|
File.Capabilities |
File.Capabilities.setCanMoveItemWithinTeamDrive(Boolean canMoveItemWithinTeamDrive)
Deprecated - use canMoveItemWithinDrive instead.
|
File.Capabilities |
File.Capabilities.setCanMoveTeamDriveItem(Boolean canMoveTeamDriveItem)
Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
|
File.Capabilities |
File.Capabilities.setCanReadDrive(Boolean canReadDrive)
Whether the current user can read the shared drive to which this file belongs.
|
File.Capabilities |
File.Capabilities.setCanReadLabels(Boolean canReadLabels)
Whether the current user can read the labels on this file.
|
File.Capabilities |
File.Capabilities.setCanReadRevisions(Boolean canReadRevisions)
Whether the current user can read the revisions resource of this file.
|
File.Capabilities |
File.Capabilities.setCanReadTeamDrive(Boolean canReadTeamDrive)
Deprecated - use canReadDrive instead.
|
File.Capabilities |
File.Capabilities.setCanRemoveChildren(Boolean canRemoveChildren)
Whether the current user can remove children from this folder.
|
File.Capabilities |
File.Capabilities.setCanRemoveMyDriveParent(Boolean canRemoveMyDriveParent)
Whether the current user can remove a parent from the item without adding another parent in the
same request.
|
File.Capabilities |
File.Capabilities.setCanRename(Boolean canRename)
Whether the current user can rename this file.
|
File.Capabilities |
File.Capabilities.setCanShare(Boolean canShare)
Whether the current user can modify the sharing settings for this file.
|
File.Capabilities |
File.Capabilities.setCanTrash(Boolean canTrash)
Whether the current user can move this file to trash.
|
File.Capabilities |
File.Capabilities.setCanTrashChildren(Boolean canTrashChildren)
Whether the current user can trash children of this folder.
|
File.Capabilities |
File.Capabilities.setCanUntrash(Boolean canUntrash)
Whether the current user can restore this file from trash.
|
Modifier and Type | Method and Description |
---|---|
File |
File.setCapabilities(File.Capabilities capabilities)
Capabilities the current user has on this file.
|
Copyright © 2011–2023 Google. All rights reserved.