Class VersionRestoreParameters
java.lang.Object
com.atlassian.confluence.api.service.content.VersionRestoreParameters
Version Restore requires a few parameters, these parameters are used by ContentVersionService.restore() method.
- Since:
- 5.10
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder method for VersionRestoreParameterbooleanstatic VersionRestoreParametersCreate a VersionRestoreParameters by extracting the value from property bag.After restore we create a new version with this message associated.booleanIf true, we restore the content title to be same as the version we restore from.intThe version number of content to restore from.inthashCode()toMap()
-
Field Details
-
VERSION_NUMBER
- See Also:
-
MESSAGE
- See Also:
-
RESTORE_TITLE
- See Also:
-
-
Method Details
-
builder
builder method for VersionRestoreParameter- Returns:
-
fromMap
Create a VersionRestoreParameters by extracting the value from property bag.- Parameters:
propertyBag-- Returns:
-
toMap
-
getVersionNumber
public int getVersionNumber()The version number of content to restore from. -
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
-
hashCode
public int hashCode()
-