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
public abstract class AbstractBindingResolver extends Object implements InputBindingResolver
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AbstractBindingResolver.NoValueToAddInContext
protected static class
AbstractBindingResolver.ValueNotFound
-
Field Summary
Fields Modifier and Type Field Description protected DocumentObjectWrapper
nuxeoWrapper
-
Constructor Summary
Constructors Constructor Description AbstractBindingResolver()
-
Method Summary
-
-
-
Field Detail
-
nuxeoWrapper
protected DocumentObjectWrapper nuxeoWrapper
-
-
Method Detail
-
getWrapper
protected DocumentObjectWrapper 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
protected void addDefaultMimetypeIfRequired(Blob blob)
-
extractAutoLoop
protected Object extractAutoLoop(TemplateInput param, Property property)
-
extractBlobContent
protected Object extractBlobContent(DocumentModel doc, TemplateInput param)
-
extractHTMLPreview
protected String extractHTMLPreview(DocumentModel doc, TemplateInput param)
-
extractDefaultValue
protected Object extractDefaultValue(DocumentModel doc, TemplateInput param)
-
getDocProperty
protected Property getDocProperty(TemplateInput param, DocumentModel doc)
-
getDocPropertyValue
protected Serializable getDocPropertyValue(DocumentModel doc, String propKey)
-
isBlob
protected boolean isBlob(Serializable propValue)
-
getHtmlValue
protected String getHtmlValue(BlobHolder bh) throws IOException
- Throws:
IOException
-
-