public final class DbImporter extends Object
Loads the data from a platform-independent backup file into the database.
What data is actually imported in the database depends heavily on both, the backup provided, and also the importers that are passed-in
| Constructor and Description |
|---|
DbImporter(ImportExportErrorService errorService,
Importer... importers) |
DbImporter(ImportExportErrorService errorService,
List<Importer> importers) |
| Modifier and Type | Method and Description |
|---|---|
void |
importData(NodeStreamReader streamReader,
ImportConfiguration configuration)
Imports the XML document read from the stream
|
public DbImporter(ImportExportErrorService errorService, Importer... importers)
public DbImporter(ImportExportErrorService errorService, List<Importer> importers)
public void importData(NodeStreamReader streamReader, ImportConfiguration configuration)
streamReader - the XML stream readerconfiguration - the import configurationIllegalStateException - if the backup XML stream is not formatted as expected.ImportExportException - or one of its sub-types if an unexpected exception happens during the import.Copyright © 2018 Atlassian. All rights reserved.