public interface ImportExportManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXPORT_XML_SCOPE_ALL
Deprecated.
since 4.2 use
ExportScope.ALL . |
static java.lang.String |
EXPORT_XML_SCOPE_PAGE
Deprecated.
since 4.2 use
ExportScope.PAGE . |
static java.lang.String |
EXPORT_XML_SCOPE_SPACE
Deprecated.
since 4.2 use
ExportScope.SPACE . |
static java.lang.String |
TYPE_ALL_DATA |
static java.lang.String |
TYPE_HTML |
static java.lang.String |
TYPE_MOINMOIN |
static java.lang.String |
TYPE_PDF |
static java.lang.String |
TYPE_XML |
Modifier and Type | Method and Description |
---|---|
void |
doImport(ImportContext context)
Performs an import specified by the given
context . |
java.lang.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.
|
java.util.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.
|
void |
importAs(java.lang.Object type,
ImportContext context)
Deprecated.
since 4.2 use
doImport(ImportContext) . |
boolean |
isImportAllowed(java.lang.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.
|
java.lang.String |
prepareDownloadPath(java.lang.String path)
Helper method - returns the location to be used in the URL generated to download
an exported archive.
|
static final java.lang.String TYPE_ALL_DATA
static final java.lang.String TYPE_XML
static final java.lang.String TYPE_HTML
static final java.lang.String TYPE_PDF
static final java.lang.String TYPE_MOINMOIN
@Deprecated static final java.lang.String EXPORT_XML_SCOPE_PAGE
ExportScope.PAGE
.@Deprecated static final java.lang.String EXPORT_XML_SCOPE_SPACE
ExportScope.SPACE
.@Deprecated static final java.lang.String EXPORT_XML_SCOPE_ALL
ExportScope.ALL
.void importAs(java.lang.Object type, ImportContext context) throws ImportExportException
doImport(ImportContext)
.ImportExportException
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 importjava.lang.String exportAs(ExportContext context, com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
ImportExportException
java.util.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 fromjava.lang.String prepareDownloadPath(java.lang.String path) throws java.io.IOException
path
- java.io.IOException
boolean isImportAllowed(java.lang.String buildNumber)
buildNumber
- the build number of the backup to be importedBuildNumber getOldestSpaceImportAllowed()
Copyright © 2003-2014 Atlassian. All Rights Reserved.