Class DefaultImportExportManager
java.lang.Object
com.atlassian.confluence.importexport.DefaultImportExportManager
- All Implemented Interfaces:
ImportExportManager
Deprecated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.Deprecated.since 5.10 UsegetImportExportTypeSpecifications()Fields inherited from interface com.atlassian.confluence.importexport.ImportExportManager
TYPE_ALL_DATA, TYPE_HTML, TYPE_MOINMOIN, TYPE_PDF, TYPE_XML -
Constructor Summary
ConstructorsConstructorDescriptionDefaultImportExportManager(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. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdoExport(ExportContext context, com.atlassian.core.util.ProgressMeter progress) Deprecated.voiddoImport(ImportContext context) Deprecated.Performs an import specified by the givencontext.protected ImmutableImportProcessorSummarydoPerformImport(ImportContext context) Deprecated.exportAs(ExportContext context, com.atlassian.core.util.ProgressMeter progress) Deprecated.Deprecated.since 7.15 obtainContentPermissionManagervia injectiongetContentTree(com.atlassian.user.User user, Space space) Deprecated.Returns a tree of content including pages for a space.Deprecated.Deprecated.The oldest build number a space can be imported from.getPageBlogTree(com.atlassian.user.User user, Space space) Deprecated.Returns a tree of content including pages and blog posts for a space.booleanisImportAllowed(String buildNumber) Deprecated.Is the manager capable of importing a backup of the given build number.performImport(ImportContext context) Deprecated.Performs an import specified by the given context and returns the summary of import result.prepareDownloadPath(String path) Deprecated.Helper method - returns the location to be used in the URL generated to download an exported archive.protected final CleanupDeprecated.
-
Field Details
-
EXPORT_ALL_FILE_PREFIX
Deprecated.- See Also:
-
importExportTypes
Deprecated.since 5.10 UsegetImportExportTypeSpecifications()
-
-
Constructor Details
-
DefaultImportExportManager
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) Deprecated.
-
-
Method Details
-
doImport
Deprecated.Description copied from interface:ImportExportManagerPerforms an import specified by the givencontext.- Specified by:
doImportin interfaceImportExportManager- Parameters:
context- a filled out context- Throws:
ImportExportException
-
performImport
public ImmutableImportProcessorSummary performImport(ImportContext context) throws ImportExportException Deprecated.Description copied from interface:ImportExportManagerPerforms an import specified by the given context and returns the summary of import result.- Specified by:
performImportin interfaceImportExportManager- Parameters:
context- a filled out context- Returns:
- the summary of all remapped ids
- Throws:
ImportExportException- if somethings goes wrong in the import
-
doPerformImport
protected ImmutableImportProcessorSummary doPerformImport(ImportContext context) throws ImportExportException Deprecated.- Throws:
ImportExportException
-
temporarilyShutdownInterferingPlugins
Deprecated. -
exportAs
public String exportAs(ExportContext context, com.atlassian.core.util.ProgressMeter progress) throws ImportExportException Deprecated.- Specified by:
exportAsin interfaceImportExportManager- Throws:
ImportExportException
-
doExport
protected String doExport(ExportContext context, com.atlassian.core.util.ProgressMeter progress) throws ImportExportException Deprecated.- Throws:
ImportExportException
-
getImportExportTypeSpecifications
Deprecated.- Specified by:
getImportExportTypeSpecificationsin interfaceImportExportManager
-
getContentTree
Deprecated.Description copied from interface:ImportExportManagerReturns a tree of content including pages for a space.- Specified by:
getContentTreein interfaceImportExportManager- Parameters:
user- to generate tree of content for, taking into account their permissionspace- to generate tree of content from- Returns:
- a tree of ContentNodes for each page in the space the user can see
-
getPageBlogTree
Deprecated.Description copied from interface:ImportExportManagerReturns a tree of content including pages and blog posts for a space.- Specified by:
getPageBlogTreein interfaceImportExportManager- Parameters:
user- to generate tree of content for, taking into account their permissionspace- to generate tree of content from- Returns:
- a tree of ContentNodes for each page and blog post in the space the user can see
-
prepareDownloadPath
Deprecated.Description copied from interface:ImportExportManagerHelper method - returns the location to be used in the URL generated to download an exported archive.- Specified by:
prepareDownloadPathin interfaceImportExportManager- Returns:
- - relative path to be combined with the URL of the site to download the archive.
- Throws:
IOException
-
isImportAllowed
Deprecated.Description copied from interface:ImportExportManagerIs the manager capable of importing a backup of the given build number. Backups from early versions of Confluence are no longer supported for importing.- Specified by:
isImportAllowedin interfaceImportExportManager- Parameters:
buildNumber- the build number of the backup to be imported- Returns:
- true if that build number is supported, false otherwise.
-
getOldestSpaceImportAllowed
Deprecated.Description copied from interface:ImportExportManagerThe oldest build number a space can be imported from. Space backups from early versions of Confluence are no longer supported for importing.- Specified by:
getOldestSpaceImportAllowedin interfaceImportExportManager- Returns:
- the oldest build number allowed.
-
getContentPermissionManager
Deprecated.since 7.15 obtainContentPermissionManagervia injection
-
BackupRestoreManagerinstead.