Class JXLSTemplateProcessor
java.lang.Object
org.nuxeo.template.processors.AbstractTemplateProcessor
org.nuxeo.template.processors.jxls.JXLSTemplateProcessor
- All Implemented Interfaces:
TemplateProcessor
JXLS
TemplateProcessor
- Author:
- Tiry
-
Field Summary
Modifier and TypeFieldDescriptionprotected SimpleContextBuilder
static final String
static final String
Configuration property to use the old JXLS 1 instead of JXLS 2.Fields inherited from class org.nuxeo.template.processors.AbstractTemplateProcessor
BUFFER_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureTransformer
(net.sf.jxls.transformer.XLSTransformer transformer) Extract parameters from the Template file.renderTemplate
(TemplateBasedDocument templateBasedDocument, String templateName) Perform rendering of the named template against theTemplateBasedDocument
protected boolean
useJXLS1()
Methods inherited from class org.nuxeo.template.processors.AbstractTemplateProcessor
getSourceTemplateBlob, getWorkingDir
-
Field Details
-
TEMPLATE_TYPE
- See Also:
-
USE_JXLS1_CONFIG_PROP
Configuration property to use the old JXLS 1 instead of JXLS 2.- Since:
- 11.1
- See Also:
-
contextBuilder
-
-
Constructor Details
-
JXLSTemplateProcessor
public JXLSTemplateProcessor()
-
-
Method Details
-
useJXLS1
protected boolean useJXLS1() -
renderTemplate
public Blob renderTemplate(TemplateBasedDocument templateBasedDocument, String templateName) throws IOException Description copied from interface:TemplateProcessor
Perform rendering of the named template against theTemplateBasedDocument
- Throws:
IOException
-
configureTransformer
protected void configureTransformer(net.sf.jxls.transformer.XLSTransformer transformer) -
getInitialParametersDefinition
Description copied from interface:TemplateProcessor
Extract parameters from the Template file.- Returns:
- List of parameters for this template
-