BackupRestoreManager instead.@Deprecated public class DefaultImportExportManager extends Object implements ImportExportManager
| Modifier and Type | Field and Description |
|---|---|
static String |
EXPORT_ALL_FILE_PREFIX
Deprecated.
|
static ArrayList<String> |
importExportTypes
Deprecated.
since 5.10 Use
getImportExportTypeSpecifications() |
TYPE_ALL_DATA, TYPE_HTML, TYPE_MOINMOIN, TYPE_PDF, TYPE_XML| Constructor and Description |
|---|
DefaultImportExportManager(ContentPermissionManager contentPermissionManager,
BootstrapManager bootstrapManager,
PageManager pageManager,
com.atlassian.event.api.EventPublisher eventPublisher,
UpgradeManager upgradeManager,
com.atlassian.plugin.PluginController pluginController,
com.atlassian.plugin.PluginAccessor pluginAccessor)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
doExport(ExportContext context,
com.atlassian.core.util.ProgressMeter progress)
Deprecated.
|
void |
doImport(ImportContext context)
Deprecated.
Performs an import specified by the given
context. |
protected ImmutableImportProcessorSummary |
doPerformImport(ImportContext context)
Deprecated.
|
String |
exportAs(ExportContext context,
com.atlassian.core.util.ProgressMeter progress)
Deprecated.
|
ContentPermissionManager |
getContentPermissionManager()
Deprecated.
since 7.15 obtain
ContentPermissionManager via injection |
ContentTree |
getContentTree(com.atlassian.user.User user,
Space space)
Deprecated.
Returns a tree of content including pages for a space.
|
List |
getImportExportTypeSpecifications()
Deprecated.
|
BuildNumber |
getOldestSpaceImportAllowed()
Deprecated.
The oldest build number a space can be imported from.
|
ContentTree |
getPageBlogTree(com.atlassian.user.User user,
Space space)
Deprecated.
Returns a tree of content including pages and blog posts for a space.
|
boolean |
isImportAllowed(String buildNumber)
Deprecated.
Is the manager capable of importing a backup of the given build number.
|
ImmutableImportProcessorSummary |
performImport(ImportContext context)
Deprecated.
Performs an import specified by the given context and returns the summary of import result.
|
String |
prepareDownloadPath(String path)
Deprecated.
Helper method - returns the location to be used in the URL generated to download
an exported archive.
|
protected Cleanup |
temporarilyShutdownInterferingPlugins(ImportContext context)
Deprecated.
|
public static final String EXPORT_ALL_FILE_PREFIX
@Deprecated public static final ArrayList<String> importExportTypes
getImportExportTypeSpecifications()public DefaultImportExportManager(ContentPermissionManager contentPermissionManager, BootstrapManager bootstrapManager, PageManager pageManager, com.atlassian.event.api.EventPublisher eventPublisher, UpgradeManager upgradeManager, com.atlassian.plugin.PluginController pluginController, com.atlassian.plugin.PluginAccessor pluginAccessor)
public void doImport(ImportContext context) throws ImportExportException
ImportExportManagercontext.doImport in interface ImportExportManagercontext - a filled out contextImportExportExceptionpublic ImmutableImportProcessorSummary performImport(ImportContext context) throws ImportExportException
ImportExportManagerperformImport in interface ImportExportManagercontext - a filled out contextImportExportException - if somethings goes wrong in the importprotected ImmutableImportProcessorSummary doPerformImport(ImportContext context) throws ImportExportException
ImportExportExceptionprotected final Cleanup temporarilyShutdownInterferingPlugins(ImportContext context)
public String exportAs(ExportContext context, com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
exportAs in interface ImportExportManagerImportExportExceptionprotected String doExport(ExportContext context, com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
ImportExportExceptionpublic List getImportExportTypeSpecifications()
getImportExportTypeSpecifications in interface ImportExportManagerpublic ContentTree getContentTree(com.atlassian.user.User user, Space space)
ImportExportManagergetContentTree in interface ImportExportManageruser - to generate tree of content for, taking into account their permissionspace - to generate tree of content frompublic ContentTree getPageBlogTree(com.atlassian.user.User user, Space space)
ImportExportManagergetPageBlogTree in interface ImportExportManageruser - to generate tree of content for, taking into account their permissionspace - to generate tree of content frompublic String prepareDownloadPath(String path) throws IOException
ImportExportManagerprepareDownloadPath in interface ImportExportManagerIOExceptionpublic boolean isImportAllowed(String buildNumber)
ImportExportManagerisImportAllowed in interface ImportExportManagerbuildNumber - the build number of the backup to be importedpublic BuildNumber getOldestSpaceImportAllowed()
ImportExportManagergetOldestSpaceImportAllowed in interface ImportExportManager@Deprecated public ContentPermissionManager getContentPermissionManager()
ContentPermissionManager via injectionCopyright © 2003–2022 Atlassian. All rights reserved.