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 class
VersionRestoreParameters.VersionRestoreParametersBuilder
-
Field Summary
Fields Modifier and Type Field Description static String
MESSAGE
static String
RESTORE_TITLE
static String
VERSION_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VersionRestoreParameters.VersionRestoreParametersBuilder
builder()
builder method for VersionRestoreParameterboolean
equals(Object o)
static VersionRestoreParameters
fromMap(Map<String,String> propertyBag)
Create a VersionRestoreParameters by extracting the value from property bag.String
getMessage()
After restore we create a new version with this message associated.boolean
getRestoreTitle()
If true, we restore the content title to be same as the version we restore from.int
getVersionNumber()
The version number of content to restore from.int
hashCode()
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.
-
-