Class ListItemVersion

java.lang.Object
com.amilesend.onedrive.resource.site.ListItemVersion

public class ListItemVersion extends Object
Describes a previous version of a list item.

Required permissions (one of):

  • Sites.ReadWrite.All
  • Sites.Manage.All
  • Sites.FullControl.All

API Documentation.

See Also:
  • Field Details

  • Method Details

    • restore

      public boolean restore()
      Restores this version.

      API Documentation.

      Returns:
      true if successful; else, false
    • builder

      public static ListItemVersion.ListItemVersionBuilder builder()
    • getFields

      public Map<String,Object> getFields()
      The key is the name of the column, the value is the associated value of the columns set on this list item.
    • getId

      public String getId()
      The version identifier.
    • getLastModifiedBy

      public IdentitySet getLastModifiedBy()
      The user who last modified the version.
    • getLastModifiedDateTime

      public String getLastModifiedDateTime()
      The timestamp of when the version was last modifed.
    • getPublished

      public PublicationFacet getPublished()
      Describes the publication status of a version.
    • getSiteId

      public String getSiteId()
      The associated site identifier.
    • getListId

      public String getListId()
      The associated list identifier.
    • getListItemId

      public String getListItemId()
      The associated list item identifier.
    • getConnection

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object