Class DefaultImportExportManager
- java.lang.Object
-
- com.atlassian.confluence.importexport.DefaultImportExportManager
-
- All Implemented Interfaces:
ImportExportManager
@Deprecated public class DefaultImportExportManager extends Object implements ImportExportManager
Deprecated.since 7.17.0. UseBackupRestoreManager
instead.
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXPORT_ALL_FILE_PREFIX
Deprecated.static ArrayList<String>
importExportTypes
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
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected 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.String
exportAs(ExportContext context, com.atlassian.core.util.ProgressMeter progress)
Deprecated.ContentPermissionManager
getContentPermissionManager()
Deprecated.since 7.15 obtainContentPermissionManager
via injectionContentTree
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.
-
-
-
Field Detail
-
EXPORT_ALL_FILE_PREFIX
public static final String EXPORT_ALL_FILE_PREFIX
Deprecated.- See Also:
- Constant Field Values
-
importExportTypes
@Deprecated public static final ArrayList<String> importExportTypes
Deprecated.since 5.10 UsegetImportExportTypeSpecifications()
-
-
Constructor Detail
-
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 Detail
-
doImport
public void doImport(ImportContext context) throws ImportExportException
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
protected final Cleanup temporarilyShutdownInterferingPlugins(ImportContext context)
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
public List getImportExportTypeSpecifications()
Deprecated.- Specified by:
getImportExportTypeSpecifications
in interfaceImportExportManager
-
getContentTree
public ContentTree getContentTree(com.atlassian.user.User user, Space space)
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
public ContentTree getPageBlogTree(com.atlassian.user.User user, Space space)
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
public String prepareDownloadPath(String path) throws IOException
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
public boolean isImportAllowed(String buildNumber)
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
public BuildNumber 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 public ContentPermissionManager getContentPermissionManager()
Deprecated.since 7.15 obtainContentPermissionManager
via injection
-
-