Class AbstractExporterImpl
- java.lang.Object
-
- com.atlassian.confluence.importexport.Exporter
-
- com.atlassian.confluence.impl.importexport.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.- Since:
- 7.14
-
-
Field Summary
Fields Modifier and Type Field Description protected I18NBeanFactory
i18nBeanFactory
-
Constructor Summary
Constructors Constructor Description AbstractExporterImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkHaveSomethingToExport()
String
createAndSetExportDirectory()
protected File
createExportDirectory()
Create a temp directory to store files used to build an export zip.protected void
ensureDirectoryCreated(File directory)
protected String
getSpaceKeyForExportFileName(String spaceKey)
protected DefaultExportContext
getWorkingExportContext()
protected String
prepareExportFileName(ConfluenceEntityObject entity)
void
setExportFileNameGenerator(ExportFileNameGenerator exportFileNameGenerator)
void
setI18NBeanFactory(I18NBeanFactory i18nBeanFactory)
-
Methods inherited from class com.atlassian.confluence.importexport.Exporter
doExport, getContext, setContext
-
-
-
-
Field Detail
-
i18nBeanFactory
protected I18NBeanFactory i18nBeanFactory
-
-
Method Detail
-
getWorkingExportContext
protected DefaultExportContext getWorkingExportContext()
-
createAndSetExportDirectory
public String createAndSetExportDirectory() throws ImportExportException
- Throws:
ImportExportException
-
ensureDirectoryCreated
protected void ensureDirectoryCreated(File directory) throws ImportExportException
- Throws:
ImportExportException
-
checkHaveSomethingToExport
protected void checkHaveSomethingToExport() throws ImportExportException
- Throws:
ImportExportException
-
prepareExportFileName
protected String prepareExportFileName(ConfluenceEntityObject entity)
-
createExportDirectory
protected 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)
-
-