java.lang.Object
com.amilesend.onedrive.resource.item.BaseItem
com.amilesend.onedrive.resource.site.Site

public class Site extends BaseItem
Top-level object that represents a SharePoint document library.

API Documentation.

  • Field Details

  • Method Details

    • getDefaultDocumentLibrary

      public Drive getDefaultDocumentLibrary()
      Gets the default document library for this site.

      API Documentation.

      Returns:
      the drive representing the default document library
    • getDocumentLibraries

      public List<Drive> getDocumentLibraries()
      Gets all available document libraries for this site.

      API Documentation.

      Returns:
      the list of drives representing the document libraries.
    • getLists

      public List<List> getLists()
      Gets all lists under the site.

      API Documentation.

      Returns:
      the associated lists
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class BaseItem
    • builder

      public static Site.SiteBuilder<?,?> builder()
    • getDisplayName

      public String getDisplayName()
      The full title for the site.
    • getRoot

      public Object getRoot()
      If defined, indicates that the item is the top-most folder in the drive (read-only).
    • getSharepointIds

      public SharePointIds getSharepointIds()
      SharePoint resource identifiers for SharePoint and Business account items (read-only).
    • getSiteCollection

      public SiteCollection getSiteCollection()
      Provides details about the site's collection. Only applies to root sites.
    • getContentTypes

      public List<ContentType> getContentTypes()
      The content types for the site.
    • getColumns

      public List<ColumnDefinition> getColumns()
      The column definitions that are reusable across lists under this site.
    • getItems

      public List<BaseItem> getItems()
      The items contained within this site. Note: Cannot be enumerated.
    • getConnection

      public OneDriveConnection getConnection()
    • toString

      public String toString()
      Overrides:
      toString in class BaseItem