Class DrivePackage
java.lang.Object
com.amilesend.onedrive.resource.DriveItemType
com.amilesend.onedrive.resource.DriveItemFolderType
com.amilesend.onedrive.resource.DrivePackage
A wrapper around a
DriveItem that represents a package (OneNote).-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class DriveItemFolderType
createFolder, getChildFiles, getChildFolders, getChildPackages, getChildren, move, move, move, search, update, upload, upload, upload, upload, uploadAsync, uploadAsync, uploadAsync, uploadAsyncModifier and TypeMethodDescriptioncreateFolder(String name) Creates a new folder with the givennameunder this folder.Gets the list of child drive files under this folder.Gets the list of child drive folders under this folder.Gets the list of child drive packages under this folder.List<? extends DriveItemType> Gets the list of drive items (both folders and files) under this folder.move(@NonNull DriveFolder destinationFolder, String newName) Moves this folder to the specifiedDriveFolderalong with the new file name.move(DriveFolder destinationFolder) Moves this folder to the specifiedDriveFolder.Moves this folder to the specifiednewParentId(i.e., represents a new DriveFolder's ID) along with the new folder name.List<? extends DriveItemType> Searches this folder for the given query (e.g., file name).update()Updates the attributes for this folder.Deprecated.Deprecated.Uploads the givenfileunder this folder.Uploads the givenfileunder this folder and reports transfer progress to the specifiedTransferProgressCallback.uploadAsync(File file) Deprecated.useDriveItemFolderType.uploadAsync(Path)insteaduploadAsync(File file, com.amilesend.client.connection.file.TransferProgressCallback callback) Deprecated.uploadAsync(Path filePath) Uploads the givenfileasynchronously under this folder.uploadAsync(Path filePath, com.amilesend.client.connection.file.TransferProgressCallback callback) Uploads the givenfileasynchronously under this folder and reports transfer progress to the specifiedTransferProgressCallback.Methods inherited from class DriveItemType
addPermission, copy, copy, copy, copy, createSharingLink, delete, equals, getActivities, getCreatedBy, getCreatedDateTime, getETag, getFileSystemInfo, getId, getLastModifiedBy, getLastModifiedDateTime, getName, getPackage, getParentReference, getPermissions, getRemoteItem, getThumbnails, getVersions, hashCode, isDeleted, isFile, isFolder, isPackage, isRemote, setFileSystemInfoModifier and TypeMethodDescriptionaddPermission(AddPermissionRequest request) Adds a permission for the given request.copy(@NonNull DriveFolder destinationFolder, String newName) Copies this drive item type to the specifiedDriveFolderalong with the new file name.copy(DriveFolder destinationFolder) Copies this drive item type to the specifiedDriveFolder.Copies this drive item type to the specifiednewNamewithin the same folder.Copies this drive item type to the specifiednewParentId(i.e., represents a new DriveFolder's ID) along with the new file name.Creates a sharing link for the given request.voiddelete()Mark this drive item type for deletion.booleanGets the list of activities associated with this drive item.Gets the identity set that indicates who created this drive item.Gets the timestamp (formatted as a string) that indicates when this drive item was created.getETag()Gets the eTag associated with this item.Gets the local file system information associated with this drive item.getId()Gets the drive item identifier.Gets the identity set that indicates who made the last modification to this drive item.Gets the timestamp (formatted as a string) that indicates when this drive item was modified.getName()Gets the name of this drive item.Gets the package information associated with this drive item.Gets the parent reference of this drive item.Gets the list of permissions associated with this drive item.Gets the remote item information.Gets the list thumbnails associated with this drive item.Gets the list of versions for this drive item.inthashCode()booleanDescribes if this drive item has been marked for deletion.booleanisFile()Describes if this is a file.booleanisFolder()Describes if this is a folder.booleanDescribes if this is a package.booleanisRemote()Describes if this drive item represents a remote item from another drive.voidsetFileSystemInfo(@NonNull FileSystemInfo fileSystemInfo) Sets the local file system information associated with this drive item.
-
Constructor Details
-
DrivePackage
-
-
Method Details
-
toString
-
DriveItemFolderType.upload(Path)instead