Interface ImportExportManager
-
- All Known Implementing Classes:
DefaultImportExportManager
@Deprecated public interface ImportExportManager
Deprecated.since 7.17.0. UseBackupRestoreManager
instead
-
-
Field Summary
Fields Modifier and Type Field 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.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
doImport(ImportContext context)
Deprecated.Performs an import specified by the givencontext
.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.
-
-
-
Field Detail
-
TYPE_ALL_DATA
static final String TYPE_ALL_DATA
Deprecated.- See Also:
- Constant Field Values
-
TYPE_XML
static final String TYPE_XML
Deprecated.- See Also:
- Constant Field Values
-
TYPE_HTML
static final String TYPE_HTML
Deprecated.- See Also:
- Constant Field Values
-
TYPE_PDF
static final String TYPE_PDF
Deprecated.- See Also:
- Constant Field Values
-
TYPE_MOINMOIN
static final String TYPE_MOINMOIN
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
doImport
@Transactional(noRollbackFor=ImportExportException.class) void doImport(ImportContext context) throws ImportExportException
Deprecated.Performs an import specified by the givencontext
.- Parameters:
context
- a filled out context- Throws:
ImportExportException
-
performImport
@Transactional(noRollbackFor=ImportExportException.class) ImmutableImportProcessorSummary performImport(ImportContext context) throws ImportExportException
Deprecated.Performs an import specified by the given context and returns the summary of import result.- Parameters:
context
- a filled out context- Returns:
- the summary of all remapped ids
- Throws:
ImportExportException
- if somethings goes wrong in the import
-
exportAs
@Transactional(readOnly=true, noRollbackFor=ImportExportException.class) String exportAs(ExportContext context, com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
Deprecated.- Throws:
ImportExportException
-
getImportExportTypeSpecifications
@Transactional(readOnly=true) List getImportExportTypeSpecifications()
Deprecated.
-
getContentTree
@Transactional(readOnly=true) ContentTree getContentTree(com.atlassian.user.User user, Space space)
Deprecated.Returns a tree of content including pages for a space.- 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
@Transactional(readOnly=true) ContentTree getPageBlogTree(com.atlassian.user.User user, Space space)
Deprecated.Returns a tree of content including pages and blog posts for a space.- 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
@Transactional(propagation=SUPPORTS, noRollbackFor=java.io.IOException.class) String prepareDownloadPath(String path) throws IOException
Deprecated.Helper method - returns the location to be used in the URL generated to download an exported archive.- Parameters:
path
-- Returns:
- - relative path to be combined with the URL of the site to download the archive.
- Throws:
IOException
-
isImportAllowed
@Transactional(readOnly=true) boolean isImportAllowed(String buildNumber)
Deprecated.Is the manager capable of importing a backup of the given build number. Backups from early versions of Confluence are no longer supported for importing.- Parameters:
buildNumber
- the build number of the backup to be imported- Returns:
- true if that build number is supported, false otherwise.
-
getOldestSpaceImportAllowed
@Transactional(readOnly=true) BuildNumber getOldestSpaceImportAllowed()
Deprecated.The oldest build number a space can be imported from. Space backups from early versions of Confluence are no longer supported for importing.- Returns:
- the oldest build number allowed.
-
-