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

Abstract exporter that only deals with simple general export utility methods like where the files go.


Field Summary
protected  I18NBeanFactory i18nBeanFactory
           
 
Fields inherited from class com.atlassian.confluence.importexport.Exporter
context
 
Constructor Summary
AbstractExporterImpl()
           
 
Method Summary
protected  void checkHaveSomethingToExport()
           
 java.lang.String createAndSetExportDirectory()
           
protected  java.io.File createExportDirectory()
          Create a temp directory to store files used to build an export zip.
protected  void ensureDirectoryCreated(java.io.File directory)
           
protected  java.lang.String getSpaceKeyForExportFileName(java.lang.String spaceKey)
           
protected  DefaultExportContext getWorkingExportContext()
           
protected  java.lang.String prepareExportFileName(ConfluenceEntityObject entity)
           
 void setExportFileNameGenerator(ExportFileNameGenerator exportFileNameGenerator)
           
 void setI18NBeanFactory(I18NBeanFactory i18nBeanFactory)
           
 
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
 

Field Detail

i18nBeanFactory

protected I18NBeanFactory i18nBeanFactory
Constructor Detail

AbstractExporterImpl

public AbstractExporterImpl()
Method Detail

getWorkingExportContext

protected DefaultExportContext getWorkingExportContext()

createAndSetExportDirectory

public java.lang.String createAndSetExportDirectory()
                                             throws ImportExportException
Throws:
ImportExportException

ensureDirectoryCreated

protected void ensureDirectoryCreated(java.io.File directory)
                               throws ImportExportException
Throws:
ImportExportException

getSpaceKeyForExportFileName

protected java.lang.String getSpaceKeyForExportFileName(java.lang.String spaceKey)

checkHaveSomethingToExport

protected void checkHaveSomethingToExport()
                                   throws ImportExportException
Throws:
ImportExportException

prepareExportFileName

protected java.lang.String prepareExportFileName(ConfluenceEntityObject entity)

createExportDirectory

protected java.io.File createExportDirectory()
                                      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)

setI18NBeanFactory

public void setI18NBeanFactory(I18NBeanFactory i18nBeanFactory)


Copyright © 2003-2014 Atlassian. All Rights Reserved.