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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVersionRestoreParameters.VersionRestoreParametersBuilder
-
Field Summary
Fields Modifier and Type Field Description static StringMESSAGEstatic StringRESTORE_TITLEstatic StringVERSION_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VersionRestoreParameters.VersionRestoreParametersBuilderbuilder()builder method for VersionRestoreParameterbooleanequals(Object o)static VersionRestoreParametersfromMap(Map<String,String> propertyBag)Create a VersionRestoreParameters by extracting the value from property bag.StringgetMessage()After restore we create a new version with this message associated.booleangetRestoreTitle()If true, we restore the content title to be same as the version we restore from.intgetVersionNumber()The version number of content to restore from.inthashCode()Map<String,String>toMap()
-
-
-
Field Detail
-
VERSION_NUMBER
public static final String VERSION_NUMBER
- See Also:
- Constant Field Values
-
MESSAGE
public static final String MESSAGE
- See Also:
- Constant Field Values
-
RESTORE_TITLE
public static final String RESTORE_TITLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
public static VersionRestoreParameters.VersionRestoreParametersBuilder 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:
-
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.
-
-