com.atlassian.confluence.importexport
Class DefaultImportExportManager

java.lang.Object
  extended by com.atlassian.confluence.importexport.DefaultImportExportManager
All Implemented Interfaces:
ImportExportManager

public class DefaultImportExportManager
extends Object
implements ImportExportManager


Field Summary
static String EXPORT_ALL_FILE_PREFIX
           
static ArrayList<String> importExportTypes
           
 
Fields inherited from interface com.atlassian.confluence.importexport.ImportExportManager
EXPORT_XML_SCOPE_ALL, EXPORT_XML_SCOPE_PAGE, EXPORT_XML_SCOPE_SPACE, TYPE_ALL_DATA, TYPE_HTML, TYPE_MOINMOIN, TYPE_PDF, TYPE_XML
 
Constructor Summary
DefaultImportExportManager()
           
 
Method Summary
 String exportAs(ExportContext context, com.atlassian.core.util.ProgressMeter progress)
           
 ContentPermissionManager getContentPermissionManager()
           
 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.
 void setBootstrapManager(BootstrapManager bootstrapManager)
           
 void setContentPermissionManager(ContentPermissionManager contentPermissionManager)
           
 void setPageManager(PageManager pageManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXPORT_ALL_FILE_PREFIX

public static final String EXPORT_ALL_FILE_PREFIX
See Also:
Constant Field Values

importExportTypes

public static final ArrayList<String> importExportTypes
Constructor Detail

DefaultImportExportManager

public DefaultImportExportManager()
Method Detail

importAs

public void importAs(Object type,
                     ImportContext context)
              throws ImportExportException
Specified by:
importAs in interface ImportExportManager
Throws:
ImportExportException

exportAs

public String exportAs(ExportContext context,
                       com.atlassian.core.util.ProgressMeter progress)
                throws ImportExportException
Specified by:
exportAs in interface ImportExportManager
Throws:
ImportExportException

getImportExportTypeSpecifications

public List getImportExportTypeSpecifications()
Specified by:
getImportExportTypeSpecifications in interface ImportExportManager

getContentTree

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

prepareDownloadPath

public String prepareDownloadPath(String path)
                           throws IOException
Description copied from interface: ImportExportManager
Helper method - returns the location to be used in the URL generated to download an exported archive.

Specified by:
prepareDownloadPath in interface ImportExportManager
Returns:
- relative path to be combined with the URL of the site to download the archive.
Throws:
IOException

getContentPermissionManager

public ContentPermissionManager getContentPermissionManager()

setContentPermissionManager

public void setContentPermissionManager(ContentPermissionManager contentPermissionManager)

setBootstrapManager

public void setBootstrapManager(BootstrapManager bootstrapManager)

setPageManager

public void setPageManager(PageManager pageManager)


Copyright © 2003-2011 Atlassian. All Rights Reserved.