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 (tdelprat@nuxeo.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected FMContextBuilder
fmContextBuilder
static String
TEMPLATE_TYPE
-
Fields inherited from class org.nuxeo.template.processors.AbstractTemplateProcessor
BUFFER_SIZE, log
-
-
Constructor Summary
Constructors Constructor Description JODReportTemplateProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 theTemplateBasedDocument
-
Methods inherited from class org.nuxeo.template.processors.AbstractTemplateProcessor
getSourceTemplateBlob, getWorkingDir
-
-
-
-
Field Detail
-
TEMPLATE_TYPE
public static final String TEMPLATE_TYPE
- See Also:
- Constant Field Values
-
fmContextBuilder
protected FMContextBuilder fmContextBuilder
-
-
Constructor Detail
-
JODReportTemplateProcessor
public JODReportTemplateProcessor()
-
-
Method Detail
-
getInitialParametersDefinition
public List<TemplateInput> getInitialParametersDefinition(Blob blob) throws IOException
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
public String readXMLContent(Blob blob) throws IOException
- Throws:
IOException
-
-