Package com.amilesend.onedrive.resource
Class Site
java.lang.Object
com.amilesend.onedrive.resource.Site
A wrapper around a
Site
that represents a sharepoint site.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the column definitions that are reusable across lists under this site.Gets the content types for the site.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 default document library for this site.Gets the description associated with this drive.Gets the full title for the site.Gets all available document libraries for this site.getETag()
Gets the eTag associated with this drive.getId()
Gets the drive identifier.getItems()
Gets the items contained within this site.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.getLists()
Gets all lists under the site.getName()
Gets the name of this drive.Gets the parent reference of this drive.Gets the SharePoint resource identifiers for SharePoint and Business account itemsGets the details about the site's collection (only applicable to root sites).Gets the web URL formatted as a string for this drive.int
hashCode()
boolean
isRoot()
Indicates if this site is the root site.toString()
-
Constructor Details
-
Site
-
-
Method Details
-
getId
Gets the drive identifier.- Returns:
- the drive identifier
-
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
Gets the eTag associated with this drive.- Returns:
- the etag
-
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
Gets the name of this drive.- Returns:
- the name
-
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
-
getDisplayName
Gets the full title for the site.- Returns:
- the display name
-
isRoot
public boolean isRoot()Indicates if this site is the root site.- Returns:
true
if this site is the root; else,false
-
getSiteCollection
Gets the details about the site's collection (only applicable to root sites).- Returns:
- the site collection
- See Also:
-
getContentTypes
Gets the content types for the site.- Returns:
- the list of content types
-
getColumns
Gets the column definitions that are reusable across lists under this site.- Returns:
- the list of column definitions
- See Also:
-
getItems
Gets the items contained within this site. Note: Cannot be enumerated.- Returns:
- the list of items
-
toString
-
getDefaultDocumentLibrary
Gets the default document library for this site.- Returns:
- the drive that represents the document library
- See Also:
-
getDocumentLibraries
Gets all available document libraries for this site.- Returns:
- the list of drive sthat represent the document libraries
- See Also:
-
getLists
Gets all lists under the site.- Returns:
- the list of lists
- See Also:
-
equals
-
hashCode
public int hashCode()
-