| Modifier and Type | Class and Description |
|---|---|
static class |
ActiveObjectsBackup.UpperCaseEntityNameProcessor |
| Constructor and Description |
|---|
ActiveObjectsBackup(DatabaseProviderFactory databaseProviderFactory,
TenantAwareDataSourceProvider tenantAwareDataSourceProvider,
com.atlassian.tenancy.api.TenantContext tenantContext,
net.java.ao.schema.NameConverters converters,
ImportExportErrorService errorService,
ActiveObjectsServiceFactory aoServiceFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the database of any AO tables.
|
void |
restore(InputStream stream,
RestoreProgressMonitor monitor)
Restores the backup coming from the given input stream.
|
void |
save(OutputStream stream,
BackupProgressMonitor monitor)
Saves the backup to an output stream.
|
static net.java.ao.SchemaConfiguration |
schemaConfiguration() |
public static final Prefix PREFIX
public ActiveObjectsBackup(DatabaseProviderFactory databaseProviderFactory, TenantAwareDataSourceProvider tenantAwareDataSourceProvider, com.atlassian.tenancy.api.TenantContext tenantContext, net.java.ao.schema.NameConverters converters, ImportExportErrorService errorService, ActiveObjectsServiceFactory aoServiceFactory)
public void save(OutputStream stream, BackupProgressMonitor monitor)
save in interface Backupstream - the stream to write the backup tomonitor - the progress monitor for the current backupImportExportException - or one of its sub-types if any error happens during the backup.
SQL exceptions will be wrapped in ImportExportException.public static net.java.ao.SchemaConfiguration schemaConfiguration()
public void restore(InputStream stream, RestoreProgressMonitor monitor)
restore in interface Backupstream - the stream of data previously backed up by the plugin.monitor - the progress monitor for the current restoreImportExportException - or one of its sub-types if any error happens during the backup.
SQL exceptions will be wrapped in ImportExportException.Copyright © 2018 Atlassian. All rights reserved.