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, getWorkingDir
public static final String TEMPLATE_TYPE
protected FMContextBuilder fmContextBuilder
public JODReportTemplateProcessor()
public List<TemplateInput> getInitialParametersDefinition(Blob blob) throws IOException
TemplateProcessor
getInitialParametersDefinition
in interface TemplateProcessor
IOException
public Blob renderTemplate(TemplateBasedDocument templateBasedDocument, String templateName) throws IOException
TemplateProcessor
TemplateBasedDocument
renderTemplate
in interface TemplateProcessor
IOException
public String readXMLContent(Blob blob) throws IOException
IOException
Copyright © 2018 Nuxeo. All rights reserved.