Class DefaultImportExportManager
java.lang.Object
com.atlassian.confluence.importexport.DefaultImportExportManager
- All Implemented Interfaces:
ImportExportManager
Deprecated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Deprecated.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 String
doExport
(ExportContext context, com.atlassian.core.util.ProgressMeter progress) Deprecated.void
doImport
(ImportContext context) Deprecated.Performs an import specified by the givencontext
.protected ImmutableImportProcessorSummary
doPerformImport
(ImportContext context) Deprecated.exportAs
(ExportContext context, com.atlassian.core.util.ProgressMeter progress) Deprecated.Deprecated.since 7.15 obtainContentPermissionManager
via 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.boolean
isImportAllowed
(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 Cleanup
Deprecated.
-
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:ImportExportManager
Performs an import specified by the givencontext
.- Specified by:
doImport
in interfaceImportExportManager
- Parameters:
context
- a filled out context- Throws:
ImportExportException
-
performImport
public ImmutableImportProcessorSummary performImport(ImportContext context) throws ImportExportException Deprecated.Description copied from interface:ImportExportManager
Performs an import specified by the given context and returns the summary of import result.- Specified by:
performImport
in 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:
exportAs
in interfaceImportExportManager
- Throws:
ImportExportException
-
doExport
protected String doExport(ExportContext context, com.atlassian.core.util.ProgressMeter progress) throws ImportExportException Deprecated.- Throws:
ImportExportException
-
getImportExportTypeSpecifications
Deprecated.- Specified by:
getImportExportTypeSpecifications
in interfaceImportExportManager
-
getContentTree
Deprecated.Description copied from interface:ImportExportManager
Returns a tree of content including pages for a space.- Specified by:
getContentTree
in 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:ImportExportManager
Returns a tree of content including pages and blog posts for a space.- Specified by:
getPageBlogTree
in 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:ImportExportManager
Helper method - returns the location to be used in the URL generated to download an exported archive.- Specified by:
prepareDownloadPath
in 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:ImportExportManager
Is 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:
isImportAllowed
in 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:ImportExportManager
The oldest build number a space can be imported from. Space backups from early versions of Confluence are no longer supported for importing.- Specified by:
getOldestSpaceImportAllowed
in interfaceImportExportManager
- Returns:
- the oldest build number allowed.
-
getContentPermissionManager
Deprecated.since 7.15 obtainContentPermissionManager
via injection
-
BackupRestoreManager
instead.