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 class
Drive.DriveBuilder<C extends Drive,
B extends Drive.DriveBuilder<C, B>> Nested classes/interfaces inherited from class com.amilesend.onedrive.resource.item.BaseItem
BaseItem.BaseItemBuilder<C extends BaseItem,
B extends BaseItem.BaseItemBuilder<C, B>> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Drive.DriveBuilder
<?, ?> builder()
boolean
Queries 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: Eithernull
or defined as empty.int
hashCode()
Search for items associated with thisDrive
.toString()
Methods inherited from class com.amilesend.onedrive.resource.item.BaseItem
getCreatedBy, getCreatedDateTime, getDescription, getETag, getId, getLastModifiedBy, getLastModifiedDateTime, getName, getParentReference, getWebUrl, setDescription, setName, setParentReference
-
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
public int 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: Eithernull
or defined as empty. -
getConnection
-
toString
-