com.atlassian.confluence.importexport
Interface ImportExportManager

All Known Implementing Classes:
DefaultImportExportManager

public interface ImportExportManager


Field Summary
static String EXPORT_XML_SCOPE_ALL
           
static String EXPORT_XML_SCOPE_PAGE
           
static String EXPORT_XML_SCOPE_SPACE
           
static String TYPE_ALL_DATA
           
static String TYPE_HTML
           
static String TYPE_MOINMOIN
           
static String TYPE_PDF
           
static String TYPE_SNIPSNAP
           
static String TYPE_XML
           
 
Method Summary
 String exportAs(ExportContext context, com.atlassian.core.util.ProgressMeter progress)
           
 ContentTree getContentTree(com.atlassian.user.User user, Space space)
           
 List getImportExportTypeSpecifications()
           
 void importAs(Object type, ImportContext context)
           
 String prepareDownloadPath(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 String TYPE_ALL_DATA
See Also:
Constant Field Values

TYPE_XML

static final String TYPE_XML
See Also:
Constant Field Values

TYPE_HTML

static final String TYPE_HTML
See Also:
Constant Field Values

TYPE_PDF

static final String TYPE_PDF
See Also:
Constant Field Values

TYPE_SNIPSNAP

static final String TYPE_SNIPSNAP
See Also:
Constant Field Values

TYPE_MOINMOIN

static final String TYPE_MOINMOIN
See Also:
Constant Field Values

EXPORT_XML_SCOPE_PAGE

static final String EXPORT_XML_SCOPE_PAGE
See Also:
Constant Field Values

EXPORT_XML_SCOPE_SPACE

static final String EXPORT_XML_SCOPE_SPACE
See Also:
Constant Field Values

EXPORT_XML_SCOPE_ALL

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

importAs

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

exportAs

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

getImportExportTypeSpecifications

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

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


Copyright © 2003-2011 Atlassian. All Rights Reserved.