Interface BackupContainerWriter
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
XmlBackupContainerWriter
Responsible for writing data (objects, properties, attachment's etc).
- Since:
- 7.20.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttachments(Collection<AttachmentInfo> attachments) voidaddDescriptionProperty(String name, String value) voidaddPluginModuleData(List<? extends com.atlassian.plugin.ModuleDescriptor<BackupRestoreProvider>> moduleDescriptor) voidclose()voidwriteObjects(Collection<EntityObjectReadyForExport> objects)
-
Method Details
-
writeObjects
- Throws:
BackupRestoreException
-
addAttachments
-
addDescriptionProperty
- Throws:
BackupRestoreException
-
addPluginModuleData
void addPluginModuleData(List<? extends com.atlassian.plugin.ModuleDescriptor<BackupRestoreProvider>> moduleDescriptor) throws BackupRestoreException - Throws:
BackupRestoreException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
BackupRestoreException
-
getOutputFile
File getOutputFile()- Returns:
- the generated output file.
-