public abstract class AbstractRendererExporterImpl extends AbstractExporterImpl
Modifier and Type | Class and Description |
---|---|
static class |
AbstractRendererExporterImpl.ContentConverter |
i18nBeanFactory
Constructor and Description |
---|
AbstractRendererExporterImpl() |
Modifier and Type | Method and Description |
---|---|
protected TemplateSupport |
createTemplateSupport(String templateExtension) |
String |
doExport(com.atlassian.core.util.ProgressMeter progress)
Exports the content specified by the configured
ExportContext . |
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 the
ExportLinkFormatter for the exporter. |
protected abstract String |
getFullExportPath(String baseExportPath,
ConfluenceEntityObject entity) |
protected abstract ImageProcessingRule |
getImageProcessingRule(String exportDir)
Returns a new
ImageProcessingRule 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 |
setUserAccessor(UserAccessor userAccessor) |
void |
setXhtmlRenderer(Renderer xhtmlRenderer) |
checkHaveSomethingToExport, createAndSetExportDirectory, createExportDirectory, ensureDirectoryCreated, getSpaceKeyForExportFileName, prepareExportFileName, setExportFileNameGenerator, setI18NBeanFactory
getContext, setContext
protected abstract String getFullExportPath(String baseExportPath, ConfluenceEntityObject entity) throws ImportExportException
ImportExportException
protected abstract void doExportEntity(ConfluenceEntityObject entity, String exportPath) throws ImportExportException
ImportExportException
protected DefaultExportContext getWorkingExportContext()
getWorkingExportContext
in class AbstractExporterImpl
public String doExport(com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
Exporter
ExportContext
.doExport
in class Exporter
progress
- the meter to update with progress during the export.ImportExportException
- if it fails for any reason.protected void exportSpace(Space space, String baseExportPath) throws ImportExportException
ImportExportException
protected void exportPage(Page page, String baseExportPath) throws ImportExportException
ImportExportException
protected void ensurePathExists(String path) throws ImportExportException
ImportExportException
protected abstract ImageProcessingRule getImageProcessingRule(String exportDir)
ImageProcessingRule
for each export.protected abstract ExportLinkFormatter getExportLinkFormatter()
ExportLinkFormatter
for the exporter.protected void exportResource(String resourceUrl, String exportDir, String exportPath)
protected TemplateSupport createTemplateSupport(String templateExtension)
public void setSettingsManager(SettingsManager settingsManager)
public void setThemeManager(ThemeManager themeManager)
public void setDownloadResourceManager(DownloadResourceManager downloadResourceManager)
public void setUserAccessor(UserAccessor userAccessor)
public void setFormatSettingsManager(FormatSettingsManager formatSettingsManager)
public void setTransformerFactory(TransformerFactory xsltTransformer)
protected TransformerFactory getTransformerFactory()
public void setLocaleManager(LocaleManager localeManager)
public void setXhtmlRenderer(Renderer xhtmlRenderer)
Copyright © 2003–2017 Atlassian. All rights reserved.