Class XMLBackupContainerReader
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.restore.container.XMLBackupContainerReader
-
- All Implemented Interfaces:
BackupContainerReader
,AutoCloseable
public class XMLBackupContainerReader extends Object implements BackupContainerReader
-
-
Constructor Summary
Constructors Constructor Description XMLBackupContainerReader(ZipFile zipFile, ImportedObjectV1ToV2Converter importedObjectV1ToV2Converter, PluginDataReader pluginDataReader)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
BackupProperties
getBackupProperties()
Properties
getLegacyBackupProperties()
Deprecated.void
readObjects(BackupRestoreConsumer<ImportedObjectV2> objectConsumer)
void
readPluginModuleData()
-
-
-
Constructor Detail
-
XMLBackupContainerReader
public XMLBackupContainerReader(ZipFile zipFile, ImportedObjectV1ToV2Converter importedObjectV1ToV2Converter, PluginDataReader pluginDataReader)
-
-
Method Detail
-
getBackupProperties
public BackupProperties getBackupProperties() throws BackupRestoreException
- Specified by:
getBackupProperties
in interfaceBackupContainerReader
- Returns:
- properties of the backup
- Throws:
BackupRestoreException
-
getLegacyBackupProperties
@Deprecated public Properties getLegacyBackupProperties() throws BackupRestoreException
Deprecated.Description copied from interface:BackupContainerReader
This method was introduced to support the all legacy actions that work with Properties. Please do not use it. It will be removed in the future when all usages are got rid of.- Specified by:
getLegacyBackupProperties
in interfaceBackupContainerReader
- Returns:
- properties of the backup
- Throws:
BackupRestoreException
-
readObjects
public void readObjects(BackupRestoreConsumer<ImportedObjectV2> objectConsumer) throws BackupRestoreException
- Specified by:
readObjects
in interfaceBackupContainerReader
- Throws:
BackupRestoreException
-
readPluginModuleData
public void readPluginModuleData() throws BackupRestoreException
- Specified by:
readPluginModuleData
in interfaceBackupContainerReader
- Throws:
BackupRestoreException
-
close
public void close() throws BackupRestoreException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceBackupContainerReader
- Throws:
BackupRestoreException
-
-