Class BackupProperties
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.restore.container.BackupProperties
-
public class BackupProperties extends Object
Provides convenient operations for working with backup properties (exportDescriptor.properties)- Since:
- 8.2.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
BACKUP_ATTACHMENTS
static String
EXPORT_SOURCE_PROPERTY_NAME
static String
EXPORT_TYPE_PROPERTY_NAME
static String
LEGACY_SPACE_KEY_PROPERTY_NAME
static String
SPACE_KEYS_PROPERTY_NAME
static String
TOTAL_OBJECTS_COUNT
-
Constructor Summary
Constructors Constructor Description BackupProperties(Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getBackupAttachments()
BuildNumber
getBuildNumber()
BuildNumber
getCreatedByBuildNumber()
JobScope
getJobScope()
JobSource
getJobSource()
Get the source of the export that we want to importProperties
getProperties()
Collection<String>
getSpaceKeys()
Optional<Long>
getTotalNumberOfObjects()
-
-
-
Field Detail
-
EXPORT_TYPE_PROPERTY_NAME
public static final String EXPORT_TYPE_PROPERTY_NAME
- See Also:
- Constant Field Values
-
SPACE_KEYS_PROPERTY_NAME
public static final String SPACE_KEYS_PROPERTY_NAME
- See Also:
- Constant Field Values
-
LEGACY_SPACE_KEY_PROPERTY_NAME
public static final String LEGACY_SPACE_KEY_PROPERTY_NAME
- See Also:
- Constant Field Values
-
EXPORT_SOURCE_PROPERTY_NAME
public static final String EXPORT_SOURCE_PROPERTY_NAME
- See Also:
- Constant Field Values
-
TOTAL_OBJECTS_COUNT
public static final String TOTAL_OBJECTS_COUNT
- See Also:
- Constant Field Values
-
BACKUP_ATTACHMENTS
public static final String BACKUP_ATTACHMENTS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BackupProperties
public BackupProperties(Properties properties)
-
-
Method Detail
-
getJobScope
public JobScope getJobScope() throws BackupRestoreException
- Throws:
BackupRestoreException
-
getProperties
public Properties getProperties()
-
getSpaceKeys
public Collection<String> getSpaceKeys()
-
getCreatedByBuildNumber
public BuildNumber getCreatedByBuildNumber()
-
getBuildNumber
public BuildNumber getBuildNumber()
-
getJobSource
public JobSource getJobSource() throws BackupRestoreException
Get the source of the export that we want to import- Returns:
- JobSource
- Throws:
BackupRestoreException
-
getBackupAttachments
public Boolean getBackupAttachments()
- Returns:
- true if backupAttachments is blank or can be parsed as true, false otherwise
-
-