Class VersionRestoreParameters

java.lang.Object
com.atlassian.confluence.api.service.content.VersionRestoreParameters

public class VersionRestoreParameters extends Object
Version Restore requires a few parameters, these parameters are used by ContentVersionService.restore() method.
Since:
5.10
  • Field Details

  • Method Details

    • builder

      builder method for VersionRestoreParameter
      Returns:
    • fromMap

      public static VersionRestoreParameters fromMap(Map<String,String> propertyBag)
      Create a VersionRestoreParameters by extracting the value from property bag.
      Parameters:
      propertyBag -
      Returns:
    • toMap

      public Map<String,String> toMap()
    • getVersionNumber

      public int getVersionNumber()
      The version number of content to restore from.
    • getMessage

      public String getMessage()
      After restore we create a new version with this message associated.
    • getRestoreTitle

      public boolean getRestoreTitle()
      If true, we restore the content title to be same as the version we restore from.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object