Class AbstractRendererExporterImpl
- java.lang.Object
-
- com.atlassian.confluence.importexport.Exporter
-
- com.atlassian.confluence.impl.importexport.AbstractExporterImpl
-
- com.atlassian.confluence.impl.importexport.AbstractRendererExporterImpl
-
- Direct Known Subclasses:
HtmlExporter
public abstract class AbstractRendererExporterImpl extends AbstractExporterImpl
- Since:
- 7.14
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractRendererExporterImpl.ContentConverter
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.impl.importexport.AbstractExporterImpl
i18nBeanFactory
-
-
Constructor Summary
Constructors Constructor Description AbstractRendererExporterImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected TemplateSupport
createTemplateSupport(String templateExtension)
String
doExport(com.atlassian.core.util.ProgressMeter progress)
Exports the content specified by the configuredExportContext
.protected abstract void
doExportEntity(ConfluenceEntityObject entity, String exportPath)
protected void
ensurePathExists(String path)
protected void
exportImages(String html, Writer writer, String exportDir)
protected void
exportPage(Page page, String baseExportPath)
protected void
exportResource(String resourceUrl, String exportDir, String exportPath)
protected void
exportSpace(Space space, String baseExportPath)
protected abstract ExportLinkFormatter
getExportLinkFormatter()
Returns theExportLinkFormatter
for the exporter.protected abstract String
getFullExportPath(String baseExportPath, ConfluenceEntityObject entity)
protected abstract ImageProcessingRule
getImageProcessingRule(String exportDir)
Returns a newImageProcessingRule
for each export.protected TransformerFactory
getTransformerFactory()
protected DefaultExportContext
getWorkingExportContext()
void
setDownloadResourceManager(DownloadResourceManager downloadResourceManager)
void
setFormatSettingsManager(FormatSettingsManager formatSettingsManager)
void
setLocaleManager(LocaleManager localeManager)
void
setSettingsManager(SettingsManager settingsManager)
void
setThemeManager(ThemeManager themeManager)
void
setTransformerFactory(TransformerFactory xsltTransformer)
void
setUserPreferencesAccessor(UserPreferencesAccessor userPreferencesAccessor)
void
setXhtmlRenderer(Renderer xhtmlRenderer)
-
Methods inherited from class com.atlassian.confluence.impl.importexport.AbstractExporterImpl
checkHaveSomethingToExport, createAndSetExportDirectory, createExportDirectory, ensureDirectoryCreated, getSpaceKeyForExportFileName, prepareExportFileName, setExportFileNameGenerator, setI18NBeanFactory
-
Methods inherited from class com.atlassian.confluence.importexport.Exporter
getContext, setContext
-
-
-
-
Method Detail
-
getFullExportPath
protected abstract String getFullExportPath(String baseExportPath, ConfluenceEntityObject entity) throws ImportExportException
- Throws:
ImportExportException
-
doExportEntity
protected abstract void doExportEntity(ConfluenceEntityObject entity, String exportPath) throws ImportExportException
- Throws:
ImportExportException
-
getWorkingExportContext
protected DefaultExportContext getWorkingExportContext()
- Overrides:
getWorkingExportContext
in classAbstractExporterImpl
-
doExport
public String doExport(com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
Description copied from class:Exporter
Exports the content specified by the configuredExportContext
.- Specified by:
doExport
in classExporter
- Parameters:
progress
- the meter to update with progress during the export.- Returns:
- the path to the exported content.
- Throws:
ImportExportException
- if it fails for any reason.
-
exportSpace
protected void exportSpace(Space space, String baseExportPath) throws ImportExportException
- Throws:
ImportExportException
-
exportPage
protected void exportPage(Page page, String baseExportPath) throws ImportExportException
- Throws:
ImportExportException
-
ensurePathExists
protected void ensurePathExists(String path) throws ImportExportException
- Throws:
ImportExportException
-
getImageProcessingRule
protected abstract ImageProcessingRule getImageProcessingRule(String exportDir)
Returns a newImageProcessingRule
for each export.
-
getExportLinkFormatter
protected abstract ExportLinkFormatter getExportLinkFormatter()
Returns theExportLinkFormatter
for the exporter.
-
exportResource
protected void exportResource(String resourceUrl, String exportDir, String exportPath)
-
createTemplateSupport
protected TemplateSupport createTemplateSupport(String templateExtension)
-
setSettingsManager
public void setSettingsManager(SettingsManager settingsManager)
-
setThemeManager
public void setThemeManager(ThemeManager themeManager)
-
setDownloadResourceManager
public void setDownloadResourceManager(DownloadResourceManager downloadResourceManager)
-
setUserPreferencesAccessor
public void setUserPreferencesAccessor(UserPreferencesAccessor userPreferencesAccessor)
- Since:
- 7.16
-
setFormatSettingsManager
public void setFormatSettingsManager(FormatSettingsManager formatSettingsManager)
-
setTransformerFactory
public void setTransformerFactory(TransformerFactory xsltTransformer)
-
getTransformerFactory
protected TransformerFactory getTransformerFactory()
-
setLocaleManager
public void setLocaleManager(LocaleManager localeManager)
-
setXhtmlRenderer
public void setXhtmlRenderer(Renderer xhtmlRenderer)
-
-