public class ExportMigrationManagerImpl extends Object implements Closeable
| Constructor and Description |
|---|
ExportMigrationManagerImpl(MigrationReport report,
Path exportFile,
CipherUtils cipherUtils,
Stream<? extends Migratable> migratables)
Creates a new migration manager for an export operation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
doExport(String productBranding,
String productVersion)
Proceed with the export migration operation.
|
Path |
getExportFile() |
MigrationReport |
getReport() |
public ExportMigrationManagerImpl(MigrationReport report, Path exportFile, CipherUtils cipherUtils, Stream<? extends Migratable> migratables)
report - the migration report where warnings and errors can be recordedexportFile - the export zip filemigratables - a stream of all migratables in the system in service ranking orderMigrationException - if a failure occurs while generating the zip file (the error will
not be recorded with the report)IllegalArgumentException - if report is null or if it is not
for an export migration operation or if exportFile or migratables
is nullpublic void doExport(String productBranding, String productVersion)
productBranding - the product branding being exportedproductVersion - the product version being exportedIllegalArgumentException - if productBranding or productVersion
is nullMigrationException - to stop the export operationpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic MigrationReport getReport()
public Path getExportFile()
This work is licensed under a Creative Commons Attribution 4.0 International License.