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

public class List extends BaseItem
Represents a list resource in a site that describes the top-level properties of a list.

API Documentation.

See Also:
  • Field Details

  • Method Details

    • createListItem

      public ListItem createListItem(Map<String,Object> fields)
      Parameters:
      fields - The map of fields, with the key being the column name and the Object being its value
      Returns:
      the created list item
    • getActivities

      public List<ItemActivity> getActivities()
      Queries and fetches the activities associated with this List.

      API Documentation.

      Returns:
      the list of activities
    • equals

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

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

      public static List.ListBuilder<?,?> builder()
    • getSystem

      public Object getSystem()
      Indicates that this is a system-managed list. Note: Either null or defined as empty.
    • getColumns

      public List<ColumnDefinition> getColumns()
      The column definitions that apply to this list.
    • getContentTypes

      public List<ContentType> getContentTypes()
      The content types for this list.
    • getDrive

      public Drive getDrive()
      When defined, indicates that this list exists within a document library and can be treated as a drive.
    • getSiteId

      public String getSiteId()
      The associated site identifier that this list is associated with.
    • getConnection

      public OneDriveConnection getConnection()
      The OneDrive API connection.
    • getDisplayName

      public String getDisplayName()
      The list title.
    • getList

      public ListInfo getList()
      Additional list information.
    • toString

      public String toString()
      Overrides:
      toString in class BaseItem