public interface ImportExportManager
Modifier and Type | Field and Description |
---|---|
static String |
TYPE_ALL_DATA |
static String |
TYPE_HTML |
static String |
TYPE_MOINMOIN |
static String |
TYPE_PDF |
static String |
TYPE_XML |
Modifier and Type | Method and Description |
---|---|
void |
doImport(ImportContext context)
Performs an import specified by the given
context . |
String |
exportAs(ExportContext context,
com.atlassian.core.util.ProgressMeter progress) |
ContentTree |
getContentTree(com.atlassian.user.User user,
Space space)
Returns a tree of content including pages for a space.
|
List |
getImportExportTypeSpecifications() |
BuildNumber |
getOldestSpaceImportAllowed()
The oldest build number a space can be imported from.
|
ContentTree |
getPageBlogTree(com.atlassian.user.User user,
Space space)
Returns a tree of content including pages and blog posts for a space.
|
boolean |
isImportAllowed(String buildNumber)
Is the manager capable of importing a backup of the given build number.
|
ImmutableImportProcessorSummary |
performImport(ImportContext context)
Performs an import specified by the given context and returns the summary of import result.
|
String |
prepareDownloadPath(String path)
Helper method - returns the location to be used in the URL generated to download
an exported archive.
|
static final String TYPE_ALL_DATA
static final String TYPE_XML
static final String TYPE_HTML
static final String TYPE_PDF
static final String TYPE_MOINMOIN
void doImport(ImportContext context) throws ImportExportException
context
.context
- a filled out contextImportExportException
ImmutableImportProcessorSummary performImport(ImportContext context) throws ImportExportException
context
- a filled out contextImportExportException
- if somethings goes wrong in the importString exportAs(ExportContext context, com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
ImportExportException
List getImportExportTypeSpecifications()
ContentTree getContentTree(com.atlassian.user.User user, Space space)
user
- to generate tree of content for, taking into account their permissionspace
- to generate tree of content fromContentTree getPageBlogTree(com.atlassian.user.User user, Space space)
user
- to generate tree of content for, taking into account their permissionspace
- to generate tree of content fromString prepareDownloadPath(String path) throws IOException
path
- IOException
boolean isImportAllowed(String buildNumber)
buildNumber
- the build number of the backup to be importedBuildNumber getOldestSpaceImportAllowed()
Copyright © 2003–2021 Atlassian. All rights reserved.