|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ImportExportManager
| Field Summary | |
|---|---|
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
|
| Method Summary | |
|---|---|
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. |
| Field Detail |
|---|
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.| Method Detail |
|---|
void importAs(java.lang.Object type,
ImportContext context)
throws ImportExportException
doImport(ImportContext).
ImportExportException
void doImport(ImportContext context)
throws ImportExportException
context.
context - a filled out context
ImportExportException
ImmutableImportProcessorSummary performImport(ImportContext context)
throws ImportExportException
context - a filled out context
ImportExportException - if somethings goes wrong in the import
java.lang.String exportAs(ExportContext context,
com.atlassian.core.util.ProgressMeter progress)
throws ImportExportException
ImportExportExceptionjava.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 from
ContentTree 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 from
java.lang.String prepareDownloadPath(java.lang.String path)
throws java.io.IOException
path -
java.io.IOExceptionboolean isImportAllowed(java.lang.String buildNumber)
buildNumber - the build number of the backup to be imported
BuildNumber getOldestSpaceImportAllowed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||