Class SpecialDriveItem
java.lang.Object
com.amilesend.onedrive.resource.item.BaseItem
com.amilesend.onedrive.resource.item.DriveItem
com.amilesend.onedrive.resource.item.SpecialDriveItem
Represent a special drive folder.
a href="https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/drive_get_specialfolder"> API Documentation.
Note: Documentation mentions to reference special folder by name, but seems to be by id instead (e.g., "approot" instead of "App+Root" in the path).
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSpecialDriveItem.SpecialDriveItemBuilder<C extends SpecialDriveItem, B extends SpecialDriveItem.SpecialDriveItemBuilder<C,B>> Nested classes/interfaces inherited from class DriveItem
DriveItem.DriveItemBuilder<C,B> Modifier and TypeClassDescriptionstatic classDriveItem.DriveItemBuilder<C extends DriveItem, B extends DriveItem.DriveItemBuilder<C,B>> Nested classes/interfaces inherited from class BaseItem
BaseItem.BaseItemBuilder<C,B> Modifier and TypeClassDescriptionstatic classBaseItem.BaseItemBuilder<C extends BaseItem, B extends BaseItem.BaseItemBuilder<C,B>> -
Field Summary
Fields inherited from class DriveItem
DRIVE_ITEM_BASE_URL_PATH -
Method Summary
Modifier and TypeMethodDescriptionstatic SpecialDriveItem.SpecialDriveItemBuilder<?, ?> builder()booleanFetches the list of childDriveItems associated with thisDriveItem.The special folder type.inthashCode()voidsetSpecialFolderType(SpecialFolder.Type specialFolderType) The special folder type.toString()Methods inherited from class DriveItem
addPermission, copy, create, createSharingLink, delete, download, downloadAsync, get_package, getActivities, getAudio, getConflictBehavior, getConnection, getCTag, getDeleted, getDownloadUrl, getFile, getFileSystemInfo, getFolder, getImage, getLocation, getMalware, getPermissions, getPhoto, getPublication, getRemoteItem, getRoot, getSearchResult, getShared, getSharepointIds, getSize, getSourceUrl, getSpecialFolder, getThumbnails, getVersions, getVideo, move, previewItem, search, setConflictBehavior, setFileSystemInfo, setSourceUrl, update, upload, uploadAsync, uploadNew, uploadNewAsyncModifier and TypeMethodDescriptionaddPermission(@NonNull AddPermissionRequest requestBody) Adds a permission to thisDriveItemfor the given request.Copies thisDriveItemto a child of the givendestinationParentIdand updates the name of the copiedDriveItem.Creates a newDriveItemas a child ofthis.createSharingLink(@NonNull CreateSharingLinkRequest requestBody) Creates a sharing link for the given request.voiddelete()Deletes this drive item.voiddownload(@NonNull Path folderPath, @NonNull com.amilesend.client.connection.file.TransferProgressCallback callback) Downloads the drive item and reports transfer progress to the givenTransferProgressCallback.downloadAsync(@NonNull Path folderPath, @NonNull com.amilesend.client.connection.file.TransferProgressCallback callback) Downloads the drive item asynchronously that reports transfer progress and completion to the specifiedTransferProgressCallback.Indicates that a drive item is the top level item in a collection of items (read-only).Queries and fetches the activities associated with thisDriveItem.getAudio()The audio file attributes (read-only).Describes how to handle conflicts upon copy/move operations.Gets the underlying connection instance.getCTag()An eTag for the content of the item (read-only).Indicates if an item was deleted (read-only).The URL that can be used to download the file's content (read-only).getFile()Indicates if an item is a file (read-only).Describes drive (client-side) properties of the local version of a drive item.Describes if a given drive item is a folder resource type (read-only).getImage()The image attributes for a file (read-only).The geographic coordinates and elevation of a file (read-only).If defined, malware was detected in the file (read-only).Fetches the list of permissions associated with thisDriveItem.getPhoto()The photo attributes for a drive item file (read-only).The published status of a drive item or version (read-only).Indicates that a drive item references one that exists in another drive (read-only).getRoot()If defined, indicates that the item is the top-most folder in the drive (read-only).Indicates that the item is in response to a search query (read-only).Indicates that a drive item has been shared with others (read-only).SharePoint resource identifiers for SharePoint and Business account items (read-only).longgetSize()The size of the item in bytes (read-only).The source URL for remote uploading of file contents (write-only).Describes if the item is a special managed folder (read-only).Fetches the list of thumbnail sets associated with thisDriveItem.Fetches the list of versions of thisDriveItem.getVideo()The video file attributes (read-only).Moves thisDriveItemas a child to the givennewParentId, updates the name, or both.previewItem(@NonNull PreviewRequest requestBody) Gets the embeddable file preview URLs for inclusion in a web-based UI.Search for items associated with thisDriveItem.voidsetConflictBehavior(String conflictBehavior) Describes how to handle conflicts upon copy/move operations.voidsetFileSystemInfo(FileSystemInfo fileSystemInfo) Describes drive (client-side) properties of the local version of a drive item.voidsetSourceUrl(String sourceUrl) The source URL for remote uploading of file contents (write-only).update()Updates this drive item.upload(@NonNull Path filePath, @NonNull com.amilesend.client.connection.file.TransferProgressCallback callback) Uploads a file to replace the contents of thisDriveItemand reports the transfer status to the givenTransferProgressCallback.uploadAsync(@NonNull Path filePath, @NonNull com.amilesend.client.connection.file.TransferProgressCallback callback) Uploads a file asynchronously to replace the contents of thisDriveItemand reports the transfer status to the givenTransferProgressCallback.uploadNew(@NonNull Path filePath, @NonNull com.amilesend.client.connection.file.TransferProgressCallback callback) Uploads a new file as a child of thisDriveItemand reports the transfer status to the givenTransferProgressCallback.uploadNewAsync(@NonNull Path filePath, @NonNull com.amilesend.client.connection.file.TransferProgressCallback callback) Uploads a new file asynchronously as a child of thisDriveItemand reports the transfer status to the givenTransferProgressCallback.Methods inherited from class BaseItem
getCreatedBy, getCreatedDateTime, getDescription, getETag, getId, getLastModifiedBy, getLastModifiedDateTime, getName, getParentReference, getUpdatedAttributesMap, getWebUrl, setDescription, setName, setParentReferenceModifier and TypeMethodDescriptionThe source identity that created the item.Describes when the item was created.Description of the item.getETag()Associated ETag for the item.getId()The unique identifier for the item.The identity that last modified the item.Describes when the item was last modified.getName()The name of the item.Describes the parent information.URL for the resource shown in a browser.voidsetDescription(String description) Sets the description for updating the drive item.voidSets the updated drive item name.voidsetParentReference(ItemReference parentReference) Sets the updated parentItemReferenceused for moving a file to another folder.
-
Method Details
-
getChildren
Description copied from class:DriveItem- Overrides:
getChildrenin classDriveItem- Returns:
- list of child drive items
-
equals
-
hashCode
-
builder
-
toString
-
getSpecialFolderType
The special folder type. -
setSpecialFolderType
The special folder type.
-