BackupRestoreManager
instead@Deprecated public interface ImportExportManager
Modifier and Type | Field and Description |
---|---|
static String |
TYPE_ALL_DATA
Deprecated.
|
static String |
TYPE_HTML
Deprecated.
|
static String |
TYPE_MOINMOIN
Deprecated.
|
static String |
TYPE_PDF
Deprecated.
|
static String |
TYPE_XML
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
doImport(ImportContext context)
Deprecated.
Performs an import specified by the given
context . |
String |
exportAs(ExportContext context,
com.atlassian.core.util.ProgressMeter progress)
Deprecated.
|
ContentTree |
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.
|
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
@Transactional(noRollbackFor=ImportExportException.class) void doImport(ImportContext context) throws ImportExportException
context
.context
- a filled out contextImportExportException
@Transactional(noRollbackFor=ImportExportException.class) ImmutableImportProcessorSummary performImport(ImportContext context) throws ImportExportException
context
- a filled out contextImportExportException
- if somethings goes wrong in the import@Transactional(readOnly=true, noRollbackFor=ImportExportException.class) String exportAs(ExportContext context, com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
ImportExportException
@Transactional(readOnly=true) List getImportExportTypeSpecifications()
@Transactional(readOnly=true) 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@Transactional(readOnly=true) 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@Transactional(propagation=SUPPORTS, noRollbackFor=java.io.IOException.class) String prepareDownloadPath(String path) throws IOException
path
- IOException
@Transactional(readOnly=true) boolean isImportAllowed(String buildNumber)
buildNumber
- the build number of the backup to be imported@Transactional(readOnly=true) BuildNumber getOldestSpaceImportAllowed()
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences