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. UseBackupRestoreManagerinstead. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringEXPORT_ALL_FILE_PREFIXDeprecated.static ArrayList<String>importExportTypesDeprecated.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 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.StringexportAs(ExportContext context, com.atlassian.core.util.ProgressMeter progress)Deprecated.ContentPermissionManagergetContentPermissionManager()Deprecated.since 7.15 obtainContentPermissionManagervia injectionContentTreegetContentTree(com.atlassian.user.User user, Space space)Deprecated.Returns a tree of content including pages for a space.ListgetImportExportTypeSpecifications()Deprecated.BuildNumbergetOldestSpaceImportAllowed()Deprecated.The oldest build number a space can be imported from.ContentTreegetPageBlogTree(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.ImmutableImportProcessorSummaryperformImport(ImportContext context)Deprecated.Performs an import specified by the given context and returns the summary of import result.StringprepareDownloadPath(String path)Deprecated.Helper method - returns the location to be used in the URL generated to download an exported archive.protected CleanuptemporarilyShutdownInterferingPlugins(ImportContext ignored)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: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
protected final Cleanup temporarilyShutdownInterferingPlugins(ImportContext ignored)
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
public List getImportExportTypeSpecifications()
Deprecated.- Specified by:
 getImportExportTypeSpecificationsin interfaceImportExportManager
 
- 
getContentTree
public ContentTree getContentTree(com.atlassian.user.User user, Space space)
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
public ContentTree getPageBlogTree(com.atlassian.user.User user, Space space)
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
public String prepareDownloadPath(String path) throws IOException
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
public boolean isImportAllowed(String buildNumber)
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
public BuildNumber 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 public ContentPermissionManager getContentPermissionManager()
Deprecated.since 7.15 obtainContentPermissionManagervia injection 
 - 
 
 -