Class Drive
java.lang.Object
com.amilesend.onedrive.resource.item.BaseItem
com.amilesend.onedrive.resource.drive.Drive
Top-level object that represents a user's OneDrive or SharePoint document library.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDrive.DriveBuilder<C extends Drive, B extends Drive.DriveBuilder<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 -
Method Summary
Modifier and TypeMethodDescriptionstatic Drive.DriveBuilder<?, ?> builder()booleanQueries and fetches the activities associated with thisDrive.Fetches the list of changes associated with thisDrive.The drive type descriptor.getOwner()The user account that owns the drive.getQuota()Drive storage space quota information.Fetches the root folder associated with thisDrive.Identifiers used for SharePoint.Retrieves a special folder for the givenSpecialFolder.Type.Indicates that this is a system-managed drive: Note: Eithernullor defined as empty.inthashCode()Search for items associated with thisDrive.toString()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.
-
Field Details
-
DRIVE_BASE_URL_PATH
- See Also:
-
DRIVES_BASE_URL_PATH
- See Also:
-
DRIVE_URL_PATH_SUFFIX
- See Also:
-
DRIVES_URL_PATH_SUFFIX
- See Also:
-
-
Method Details
-
getActivities
Queries and fetches the activities associated with thisDrive.- Returns:
- the list of activities
-
getRootFolder
Fetches the root folder associated with thisDrive.- Returns:
- the root folder drive item
-
getChanges
Fetches the list of changes associated with thisDrive.- Returns:
- the list of drive item changes
-
search
Search for items associated with thisDrive.- Parameters:
query- the search query- Returns:
- the list of drive items associated with the query
-
getSpecialFolder
Retrieves a special folder for the givenSpecialFolder.Type.- Parameters:
type- the special folder type- Returns:
- the special folder drive item
- See Also:
-
equals
-
hashCode
-
builder
-
getDriveType
The drive type descriptor. Valid types are:- personal - Personal drive
- business - Business drive
- documentLibrary - Sharepoint document library
-
getOwner
The user account that owns the drive. -
getQuota
Drive storage space quota information. -
getSystem
Indicates that this is a system-managed drive: Note: Eithernullor defined as empty. -
getConnection
-
toString
-