public class XmlBackupContainerWriter extends Object implements BackupContainerWriter
| Modifier and Type | Field and Description |
|---|---|
static String |
ENTITIES_FILE_NAME |
static String |
EXPORT_DESCRIPTOR_FILE_NAME |
| Constructor and Description |
|---|
XmlBackupContainerWriter(File outputFile,
ArchiveWriter archiveWriter,
AttachmentDataFileSystemInternals localAttachmentDataFileSystem,
PluginDataWriter pluginWriter) |
XmlBackupContainerWriter(File outputFile,
ArchiveWriter archiveWriter,
AttachmentDataFileSystemInternals localAttachmentDataFileSystem,
PluginDataWriter pluginWriter,
Instant currentTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachments(Collection<AttachmentInfo> attachments) |
void |
addDescriptionProperty(String name,
String value) |
void |
addPluginModuleData(List<? extends com.atlassian.plugin.ModuleDescriptor<BackupRestoreProvider>> moduleDescriptors)
Create the data file for a specific plugin module into the backup zip file using the module Descriptors
|
void |
close() |
File |
getOutputFile() |
void |
writeObjects(Collection<EntityObjectReadyForExport> objects) |
public static final String EXPORT_DESCRIPTOR_FILE_NAME
public static final String ENTITIES_FILE_NAME
public XmlBackupContainerWriter(File outputFile, ArchiveWriter archiveWriter, AttachmentDataFileSystemInternals localAttachmentDataFileSystem, PluginDataWriter pluginWriter) throws BackupRestoreException
BackupRestoreExceptionpublic XmlBackupContainerWriter(File outputFile, ArchiveWriter archiveWriter, AttachmentDataFileSystemInternals localAttachmentDataFileSystem, PluginDataWriter pluginWriter, Instant currentTime) throws BackupRestoreException
BackupRestoreExceptionpublic void writeObjects(Collection<EntityObjectReadyForExport> objects) throws BackupRestoreException
writeObjects in interface BackupContainerWriterBackupRestoreExceptionpublic void addAttachments(Collection<AttachmentInfo> attachments) throws BackupRestoreException
addAttachments in interface BackupContainerWriterBackupRestoreExceptionpublic void addDescriptionProperty(String name, String value) throws BackupRestoreException
addDescriptionProperty in interface BackupContainerWriterBackupRestoreExceptionpublic void addPluginModuleData(List<? extends com.atlassian.plugin.ModuleDescriptor<BackupRestoreProvider>> moduleDescriptors) throws BackupRestoreException
addPluginModuleData in interface BackupContainerWritermoduleDescriptors - BackupRestoreExceptionpublic void close()
throws BackupRestoreException
close in interface BackupContainerWriterclose in interface AutoCloseableBackupRestoreExceptionpublic File getOutputFile()
getOutputFile in interface BackupContainerWriterCopyright © 2003–2022 Atlassian. All rights reserved.