com.atlassian.confluence.importexport.impl
Class AbstractRendererExporterImpl
java.lang.Object
com.atlassian.confluence.importexport.Exporter
com.atlassian.confluence.importexport.impl.AbstractExporterImpl
com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl
- Direct Known Subclasses:
- HtmlExporter
public abstract class AbstractRendererExporterImpl
- extends AbstractExporterImpl
Fields inherited from class com.atlassian.confluence.importexport.Exporter |
context |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRendererExporterImpl
public AbstractRendererExporterImpl()
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 class AbstractExporterImpl
doExport
public String doExport(com.atlassian.core.util.ProgressMeter progress)
throws ImportExportException
- Description copied from class:
Exporter
- Exports the content specified by the configured
ExportContext
.
- Specified by:
doExport
in class Exporter
- 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 new
ImageProcessingRule
for each export.
getExportLinkFormatter
protected abstract ExportLinkFormatter getExportLinkFormatter()
- Returns the
ExportLinkFormatter
for the exporter.
exportImages
protected void exportImages(String html,
Writer writer,
String exportDir)
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)
setUserAccessor
public void setUserAccessor(UserAccessor userAccessor)
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)