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 Details

    • BackupDescriptorWriter

      public BackupDescriptorWriter()
  • Method Details

    • writeBackupDescriptor

      public ExportDescriptor writeBackupDescriptor(BackupContainerWriter backupContainerWriter, ExportScope exportScope, boolean backupAttachments, Collection<String> spaceKeys, 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 exported
      spaceKeys - space keys
      objectsCount - number of exported objects
      Returns:
      export descriptor containing all the properties
      Throws:
      BackupRestoreException