Class 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 Detail

      • BackupDescriptorWriter

        public BackupDescriptorWriter()
    • Method Detail

      • 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