Class Drive
java.lang.Object
com.amilesend.onedrive.resource.Drive
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the list of activities that took place for this drive.List<? extends DriveItemType> Gets the list of changes associated with this drive.Gets the identity set that indicates who created this drive.Gets the timestamp (formatted as a string) that indicates when this drive was created.Gets the description associated with this drive.Gets the type for this drive.getETag()Gets the eTag associated with this drive.getId()Gets the drive identifier.Gets the identity set that indicates who made the last modification to this drive.Gets the timestamp (formatted as a string) that indicate when this drive was last modified.getName()Gets the name of this drive.getOwner()Gets the owner information for this drive.Gets the parent reference of this drive.getQuota()Gets the quota information for this drive.Gets the root folder for this drive.Gets the Sharepoint identifiers for this drive.Gets the special folder for the givenSpecialFolder.Type.Gets the web URL formatted as a string for this drive.inthashCode()booleanDescribes if this drive is a system-managed drive.List<? extends DriveItemType> Searches this drive for the given query (e.g., file name).toString()
-
Constructor Details
-
Drive
-
-
Method Details
-
getId
-
getCreatedBy
Gets the identity set that indicates who created this drive.- Returns:
- the identity set
- See Also:
-
getCreatedDateTime
Gets the timestamp (formatted as a string) that indicates when this drive was created.- Returns:
- the timestamp
-
getDescription
Gets the description associated with this drive.- Returns:
- the description
-
getETag
-
getLastModifiedBy
Gets the identity set that indicates who made the last modification to this drive.- Returns:
- the identity set
- See Also:
-
getLastModifiedDateTime
Gets the timestamp (formatted as a string) that indicate when this drive was last modified.- Returns:
- the timestamp
-
getName
-
getParentReference
Gets the parent reference of this drive.- Returns:
- the parent reference
- See Also:
-
getWebUrl
Gets the web URL formatted as a string for this drive.- Returns:
- the web URL
-
getDriveType
-
getOwner
Gets the owner information for this drive.- Returns:
- the identity set
- See Also:
-
getQuota
Gets the quota information for this drive.- Returns:
- the quota information
- See Also:
-
isSystemManaged
public boolean isSystemManaged()Describes if this drive is a system-managed drive. Most consumers should ignore this drive type for use in their application.- Returns:
trueif this drive is system managed; else,false
-
toString
-
getRootFolder
Gets the root folder for this drive.- Returns:
- the root drive folder
- See Also:
-
search
Searches this drive for the given query (e.g., file name).- Parameters:
query- the search query- Returns:
- the list of drive item types (either a DriveFolder or DriveFile).
- See Also:
-
getChanges
Gets the list of changes associated with this drive.- Returns:
- the list of drive item types (either a DriveFolder or DriveFile).
- See Also:
-
getSpecialFolder
Gets the special folder for the givenSpecialFolder.Type.- Parameters:
type- the type- Returns:
- the special drive folder
- See Also:
-
getActivities
Gets the list of activities that took place for this drive.- Returns:
- the list of activities
- See Also:
-
equals
-
hashCode
-