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
FieldsModifier and TypeFieldDescriptionprotected SimpleContextBuilderstatic final Stringstatic final StringConfiguration property to use the old JXLS 1 instead of JXLS 2.Fields inherited from class org.nuxeo.template.processors.AbstractTemplateProcessor
BUFFER_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureTransformer(net.sf.jxls.transformer.XLSTransformer transformer) Extract parameters from the Template file.renderTemplate(TemplateBasedDocument templateBasedDocument, String templateName) Perform rendering of the named template against theTemplateBasedDocumentprotected booleanuseJXLS1()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:TemplateProcessorPerform rendering of the named template against theTemplateBasedDocument- Throws:
IOException
-
configureTransformer
protected void configureTransformer(net.sf.jxls.transformer.XLSTransformer transformer) -
getInitialParametersDefinition
Description copied from interface:TemplateProcessorExtract parameters from the Template file.- Returns:
- List of parameters for this template
-