com.atlassian.confluence.importexport.impl
Class AbstractExporterImpl

java.lang.Object
  extended by com.atlassian.confluence.importexport.Exporter
      extended by com.atlassian.confluence.importexport.impl.AbstractExporterImpl
Direct Known Subclasses:
AbstractRendererExporterImpl, AbstractXmlExporter

public abstract class AbstractExporterImpl
extends Exporter


Field Summary
 
Fields inherited from class com.atlassian.confluence.importexport.Exporter
context, log
 
Constructor Summary
AbstractExporterImpl()
           
 
Method Summary
protected  void checkHaveSomethingToExport()
           
 String doExport(ObjectHandleTranslator translator, com.atlassian.core.util.ProgressMeter progress)
           
protected  void ensureDirectoryCreated(File directory)
           
protected  File getExportDirectory()
          Create a temp directory to store files used to build an export zip.
protected  String getSpaceKeyForExportFileName(String spaceKey)
           
protected  DefaultExportContext getWorkingExportContext()
           
protected  String prepareExportFileName(ConfluenceEntityObject entity)
           
 void setExportFileNameGenerator(ExportFileNameGenerator exportFileNameGenerator)
           
 
Methods inherited from class com.atlassian.confluence.importexport.Exporter
doExport, getContext, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractExporterImpl

public AbstractExporterImpl()
Method Detail

getWorkingExportContext

protected DefaultExportContext getWorkingExportContext()

doExport

public String doExport(ObjectHandleTranslator translator,
                       com.atlassian.core.util.ProgressMeter progress)
                throws ImportExportException
Throws:
ImportExportException

ensureDirectoryCreated

protected void ensureDirectoryCreated(File directory)
                               throws ImportExportException
Throws:
ImportExportException

getSpaceKeyForExportFileName

protected String getSpaceKeyForExportFileName(String spaceKey)

checkHaveSomethingToExport

protected void checkHaveSomethingToExport()
                                   throws ImportExportException
Throws:
ImportExportException

prepareExportFileName

protected String prepareExportFileName(ConfluenceEntityObject entity)

getExportDirectory

protected File getExportDirectory()
                           throws ImportExportException
Create a temp directory to store files used to build an export zip. Throw an error if this folder cannot be created

Returns:
the absolute path to the export directory
Throws:
ImportExportException - if the directory can't be created

setExportFileNameGenerator

public void setExportFileNameGenerator(ExportFileNameGenerator exportFileNameGenerator)


Confluence is developed by Atlassian.