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