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
TemplateProcessorfor 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 FMContextBuilderfmContextBuilderstatic StringTEMPLATE_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.StringreadXMLContent(Blob blob)BlobrenderTemplate(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:TemplateProcessorExtract parameters from the Template file.- Specified by:
getInitialParametersDefinitionin interfaceTemplateProcessor- Returns:
- List of parameters for this template
- Throws:
IOException
-
renderTemplate
public Blob renderTemplate(TemplateBasedDocument templateBasedDocument, String templateName) throws IOException
Description copied from interface:TemplateProcessorPerform rendering of the named template against theTemplateBasedDocument- Specified by:
renderTemplatein interfaceTemplateProcessor- Throws:
IOException
-
readXMLContent
public String readXMLContent(Blob blob) throws IOException
- Throws:
IOException
-
-