public class JODReportTemplateProcessor extends AbstractTemplateProcessor implements TemplateProcessor
TemplateProcessor for ODT based templates. Using JODReports but also custom ODT hacks. May be migrated to
pure ODT + Custom Freemarker soon.| Modifier and Type | Field and Description |
|---|---|
protected FMContextBuilder |
fmContextBuilder |
static String |
TEMPLATE_TYPE |
BUFFER_SIZE, log| Constructor and Description |
|---|
JODReportTemplateProcessor() |
| Modifier and Type | Method and Description |
|---|---|
List<TemplateInput> |
getInitialParametersDefinition(Blob blob)
Extract parameters from the Template file.
|
String |
readXMLContent(Blob blob) |
Blob |
renderTemplate(TemplateBasedDocument templateBasedDocument,
String templateName)
Perform rendering of the named template against the
TemplateBasedDocument |
getSourceTemplateBlob, getWorkingDirpublic static final String TEMPLATE_TYPE
protected FMContextBuilder fmContextBuilder
public JODReportTemplateProcessor()
public List<TemplateInput> getInitialParametersDefinition(Blob blob) throws IOException
TemplateProcessorgetInitialParametersDefinition in interface TemplateProcessorIOExceptionpublic Blob renderTemplate(TemplateBasedDocument templateBasedDocument, String templateName) throws IOException
TemplateProcessorTemplateBasedDocumentrenderTemplate in interface TemplateProcessorIOExceptionpublic String readXMLContent(Blob blob) throws IOException
IOExceptionCopyright © 2018 Nuxeo. All rights reserved.