Class JXLSTemplateProcessor
- java.lang.Object
-
- org.nuxeo.template.processors.AbstractTemplateProcessor
-
- org.nuxeo.template.processors.jxls.JXLSTemplateProcessor
-
- All Implemented Interfaces:
TemplateProcessor
public class JXLSTemplateProcessor extends AbstractTemplateProcessor
JXLSTemplateProcessor
- Author:
- Tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected SimpleContextBuilder
contextBuilder
static String
TEMPLATE_TYPE
static String
USE_JXLS1_CONFIG_PROP
Configuration property to use the old JXLS 1 instead of JXLS 2.-
Fields inherited from class org.nuxeo.template.processors.AbstractTemplateProcessor
BUFFER_SIZE, log
-
-
Constructor Summary
Constructors Constructor Description JXLSTemplateProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureTransformer(net.sf.jxls.transformer.XLSTransformer transformer)
List<TemplateInput>
getInitialParametersDefinition(Blob blob)
Extract parameters from the Template file.Blob
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 Detail
-
TEMPLATE_TYPE
public static final String TEMPLATE_TYPE
- See Also:
- Constant Field Values
-
USE_JXLS1_CONFIG_PROP
public static final String USE_JXLS1_CONFIG_PROP
Configuration property to use the old JXLS 1 instead of JXLS 2.- Since:
- 11.1
- See Also:
- Constant Field Values
-
contextBuilder
protected SimpleContextBuilder contextBuilder
-
-
Method Detail
-
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
public List<TemplateInput> getInitialParametersDefinition(Blob blob)
Description copied from interface:TemplateProcessor
Extract parameters from the Template file.- Returns:
- List of parameters for this template
-
-