Class BackupDescriptorWriter
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.backup.BackupDescriptorWriter
-
public class BackupDescriptorWriter extends Object
Generates data for exportDescriptor.properties file. Extracted from c.a.i.i.AbstractXmlExporter because that class will be deprecated.- Since:
- 7.16.0
-
-
Constructor Summary
Constructors Constructor Description BackupDescriptorWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExportDescriptor
writeBackupDescriptor(BackupContainerWriter backupContainerWriter, ExportScope exportScope, boolean backupAttachments, String spaceKey, Long objectsCount)
BackupDescriptorWriter was created as an equivalent of the existing legacy code from com.atlassian.confluence.importexport.impl.AbstractXmlExporter (will disapper in Confluence 8.0).
-
-
-
Method Detail
-
writeBackupDescriptor
public ExportDescriptor writeBackupDescriptor(BackupContainerWriter backupContainerWriter, ExportScope exportScope, boolean backupAttachments, String spaceKey, Long objectsCount) throws BackupRestoreException
BackupDescriptorWriter was created as an equivalent of the existing legacy code from com.atlassian.confluence.importexport.impl.AbstractXmlExporter (will disapper in Confluence 8.0).- Parameters:
backupContainerWriter
- container writer (accepts properties and writes them somewhere)exportScope
- legacy export scope (space / site)backupAttachments
- true if attachments were exportedspaceKey
- space keyobjectsCount
- number of exported objects- Returns:
- export descriptor containing all the properties
- Throws:
BackupRestoreException
-
-