Package org.nuxeo.template.processors
Class AbstractBindingResolver
java.lang.Object
org.nuxeo.template.processors.AbstractBindingResolver
- All Implemented Interfaces:
InputBindingResolver
- Direct Known Subclasses:
FMBindingResolver
,JXLSBindingResolver
,XDocReportBindingResolver
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
protected static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected Object
extractAutoLoop
(TemplateInput param, Property property) protected Object
extractBlobContent
(DocumentModel doc, TemplateInput param) protected Object
extractDefaultValue
(DocumentModel doc, TemplateInput param) protected String
extractHTMLPreview
(DocumentModel doc, TemplateInput param) protected Object
extractValueFromParam
(TemplateBasedDocument templateBasedDocument, TemplateInput param) protected Property
getDocProperty
(TemplateInput param, DocumentModel doc) protected Serializable
getDocPropertyValue
(DocumentModel doc, String propKey) protected String
protected DocumentObjectWrapper
protected abstract void
handleBlobField
(String paramName, Blob blobValue) protected String
handleHtmlField
(String paramName, String htmlValue) protected abstract Object
handleLoop
(String paramName, Object value) protected abstract Object
handlePictureField
(String paramName, Blob blobValue) protected boolean
isBlob
(Serializable propValue) void
resolve
(List<TemplateInput> inputParams, Map<String, Object> context, TemplateBasedDocument templateBasedDocument)
-
Field Details
-
nuxeoWrapper
-
-
Constructor Details
-
AbstractBindingResolver
public AbstractBindingResolver()
-
-
Method Details
-
handleLoop
-
handlePictureField
-
handleBlobField
-
handleHtmlField
-
getWrapper
-
resolve
public void resolve(List<TemplateInput> inputParams, Map<String, Object> context, TemplateBasedDocument templateBasedDocument) - Specified by:
resolve
in interfaceInputBindingResolver
-
extractValueFromParam
protected Object extractValueFromParam(TemplateBasedDocument templateBasedDocument, TemplateInput param) -
addDefaultMimetypeIfRequired
-
extractAutoLoop
-
extractBlobContent
-
extractHTMLPreview
-
extractDefaultValue
-
getDocProperty
-
getDocPropertyValue
-
isBlob
-
getHtmlValue
- Throws:
IOException
-