Class XDocReportProcessor
- java.lang.Object
-
- org.nuxeo.template.processors.AbstractTemplateProcessor
-
- org.nuxeo.template.processors.xdocreport.XDocReportProcessor
-
- All Implemented Interfaces:
TemplateProcessor
public class XDocReportProcessor extends AbstractTemplateProcessor implements TemplateProcessor
XDocReport basedTemplateProcessor
- Author:
- Tiry
-
-
Field Summary
Fields Modifier and Type Field Description static String
DocX_TEMPLATE_TYPE
protected FMContextBuilder
fmContextBuilder
protected static Log
log
static String
OOO_TEMPLATE_TYPE
static String
TEMPLATE_TYPE
-
Fields inherited from class org.nuxeo.template.processors.AbstractTemplateProcessor
BUFFER_SIZE
-
-
Constructor Summary
Constructors Constructor Description XDocReportProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TemplateInput>
getInitialParametersDefinition(Blob blob)
Extract parameters from the Template file.protected String
getTemplateFormat(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
-
log
protected static final Log log
-
TEMPLATE_TYPE
public static final String TEMPLATE_TYPE
- See Also:
- Constant Field Values
-
OOO_TEMPLATE_TYPE
public static final String OOO_TEMPLATE_TYPE
- See Also:
- Constant Field Values
-
DocX_TEMPLATE_TYPE
public static final String DocX_TEMPLATE_TYPE
- See Also:
- Constant Field Values
-
fmContextBuilder
protected FMContextBuilder fmContextBuilder
-
-
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
-
-