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 StringDocX_TEMPLATE_TYPEprotected FMContextBuilderfmContextBuilderprotected static Loglogstatic StringOOO_TEMPLATE_TYPEstatic StringTEMPLATE_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 StringgetTemplateFormat(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
- 
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: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
 
 - 
 
 -