Class JODReportTemplateProcessor
java.lang.Object
org.nuxeo.template.processors.AbstractTemplateProcessor
org.nuxeo.template.processors.jod.JODReportTemplateProcessor
- All Implemented Interfaces:
TemplateProcessor
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.- Author:
- Tiry ([email protected])
-
Field Summary
Fields inherited from class org.nuxeo.template.processors.AbstractTemplateProcessor
BUFFER_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionExtract parameters from the Template file.readXMLContent
(Blob blob) renderTemplate
(TemplateBasedDocument templateBasedDocument, String templateName) Perform rendering of the named template against theTemplateBasedDocument
Methods inherited from class org.nuxeo.template.processors.AbstractTemplateProcessor
getSourceTemplateBlob, getWorkingDir
-
Field Details
-
TEMPLATE_TYPE
- See Also:
-
fmContextBuilder
-
-
Constructor Details
-
JODReportTemplateProcessor
public JODReportTemplateProcessor()
-
-
Method Details
-
getInitialParametersDefinition
Description copied from interface:TemplateProcessor
Extract parameters from the Template file.- Specified by:
getInitialParametersDefinition
in interfaceTemplateProcessor
- Returns:
- List of parameters for this template
- Throws:
IOException
-
renderTemplate
public Blob renderTemplate(TemplateBasedDocument templateBasedDocument, String templateName) throws IOException Description copied from interface:TemplateProcessor
Perform rendering of the named template against theTemplateBasedDocument
- Specified by:
renderTemplate
in interfaceTemplateProcessor
- Throws:
IOException
-
readXMLContent
- Throws:
IOException
-