com.atlassian.confluence.importexport
Interface ImportExportManager

All Known Implementing Classes:
DefaultImportExportManager

public interface ImportExportManager


Field Summary
static java.lang.String EXPORT_XML_SCOPE_ALL
           
static java.lang.String EXPORT_XML_SCOPE_PAGE
           
static java.lang.String EXPORT_XML_SCOPE_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_SNIPSNAP
           
static java.lang.String TYPE_XML
           
 
Method Summary
 java.lang.String exportAs(ExportContext context, com.atlassian.core.util.ProgressMeter progress)
           
 ContentTree getContentTree(com.atlassian.user.User user, Space space)
           
 java.util.List getImportExportTypeSpecifications()
           
 void importAs(java.lang.Object type, ImportContext context)
           
 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

TYPE_ALL_DATA

static final java.lang.String TYPE_ALL_DATA
See Also:
Constant Field Values

TYPE_XML

static final java.lang.String TYPE_XML
See Also:
Constant Field Values

TYPE_HTML

static final java.lang.String TYPE_HTML
See Also:
Constant Field Values

TYPE_PDF

static final java.lang.String TYPE_PDF
See Also:
Constant Field Values

TYPE_SNIPSNAP

static final java.lang.String TYPE_SNIPSNAP
See Also:
Constant Field Values

TYPE_MOINMOIN

static final java.lang.String TYPE_MOINMOIN
See Also:
Constant Field Values

EXPORT_XML_SCOPE_PAGE

static final java.lang.String EXPORT_XML_SCOPE_PAGE
See Also:
Constant Field Values

EXPORT_XML_SCOPE_SPACE

static final java.lang.String EXPORT_XML_SCOPE_SPACE
See Also:
Constant Field Values

EXPORT_XML_SCOPE_ALL

static final java.lang.String EXPORT_XML_SCOPE_ALL
See Also:
Constant Field Values
Method Detail

importAs

void importAs(java.lang.Object type,
              ImportContext context)
              throws ImportExportException
Throws:
ImportExportException

exportAs

java.lang.String exportAs(ExportContext context,
                          com.atlassian.core.util.ProgressMeter progress)
                          throws ImportExportException
Throws:
ImportExportException

getImportExportTypeSpecifications

java.util.List getImportExportTypeSpecifications()

getContentTree

ContentTree getContentTree(com.atlassian.user.User user,
                           Space space)
Parameters:
user -
space -
Returns:
a tree of ContentNodes for each page in the space the user can see (by checking page level permissions)

prepareDownloadPath

java.lang.String prepareDownloadPath(java.lang.String path)
                                     throws java.io.IOException
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:
java.io.IOException


Copyright © 2003-2011 Atlassian. All Rights Reserved.