Class Site

java.lang.Object
com.amilesend.onedrive.resource.Site

public class Site extends Object
A wrapper around a Site that represents a sharepoint site.
  • Constructor Details

    • Site

      public Site(Site delegate)
  • Method Details

    • getId

      public String getId()
      Gets the drive identifier.
      Returns:
      the drive identifier
    • getCreatedBy

      public IdentitySet getCreatedBy()
      Gets the identity set that indicates who created this drive.
      Returns:
      the identity set
      See Also:
    • getCreatedDateTime

      public String getCreatedDateTime()
      Gets the timestamp (formatted as a string) that indicates when this drive was created.
      Returns:
      the timestamp
    • getDescription

      public String getDescription()
      Gets the description associated with this drive.
      Returns:
      the description
    • getETag

      public String getETag()
      Gets the eTag associated with this drive.
      Returns:
      the etag
    • getLastModifiedBy

      public IdentitySet getLastModifiedBy()
      Gets the identity set that indicates who made the last modification to this drive.
      Returns:
      the identity set
      See Also:
    • getLastModifiedDateTime

      public String getLastModifiedDateTime()
      Gets the timestamp (formatted as a string) that indicate when this drive was last modified.
      Returns:
      the timestamp
    • getName

      public String getName()
      Gets the name of this drive.
      Returns:
      the name
    • getParentReference

      public ItemReference getParentReference()
      Gets the parent reference of this drive.
      Returns:
      the parent reference
      See Also:
    • getWebUrl

      public String getWebUrl()
      Gets the web URL formatted as a string for this drive.
      Returns:
      the web URL
    • getDisplayName

      public String 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
    • getSharepointIds

      public SharePointIds getSharepointIds()
      Gets the SharePoint resource identifiers for SharePoint and Business account items
      Returns:
      the SharePoint resource identifiers
      See Also:
    • getSiteCollection

      public SiteCollection getSiteCollection()
      Gets the details about the site's collection (only applicable to root sites).
      Returns:
      the site collection
      See Also:
    • getContentTypes

      public List<ContentType> getContentTypes()
      Gets the content types for the site.
      Returns:
      the list of content types
    • getColumns

      public List<ColumnDefinition> getColumns()
      Gets the column definitions that are reusable across lists under this site.
      Returns:
      the list of column definitions
      See Also:
    • getItems

      public List<BaseItem> getItems()
      Gets the items contained within this site. Note: Cannot be enumerated.
      Returns:
      the list of items
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDefaultDocumentLibrary

      public Drive getDefaultDocumentLibrary()
      Gets the default document library for this site.
      Returns:
      the drive that represents the document library
      See Also:
    • getDocumentLibraries

      public List<Drive> getDocumentLibraries()
      Gets all available document libraries for this site.
      Returns:
      the list of drive sthat represent the document libraries
      See Also:
    • getLists

      public List<List> getLists()
      Gets all lists under the site.
      Returns:
      the list of lists
      See Also:
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object