public class WorkInstanceJsonMapper extends BaseJsonMapper<WorkInstanceSearchRepresentation> implements WorkInstanceResultMapper
WorkInstanceResultMapper.Enhancer
Modifier and Type | Field and Description |
---|---|
protected List<WorkInstanceResultMapper.Enhancer> |
resultMapperEnhancers |
Constructor and Description |
---|
WorkInstanceJsonMapper() |
Modifier and Type | Method and Description |
---|---|
WorkInstanceSearchRepresentation |
convert(com.fasterxml.jackson.databind.JsonNode sourceNode)
Converts the given source node (not the full Elasticsearch hit document, just the source object within it).
|
WorkInstanceSearchRepresentation |
convertHit(com.fasterxml.jackson.databind.JsonNode hitNode)
Implement this method, if you want to enhance or enrich the response with additional data outside of the source object within the hit document
returned by Elasticsearch.
|
protected WorkInstanceSearchRepresentation |
convertWithoutEnhancer(com.fasterxml.jackson.databind.JsonNode jsonNode) |
List<WorkInstanceResultMapper.Enhancer> |
getResultMapperEnhancers() |
void |
setResultMapperEnhancers(List<WorkInstanceResultMapper.Enhancer> resultMapperEnhancers) |
createScopeSearchInfo, createTranslationSearchResponses, flattenVariables, transformVariableNode
protected List<WorkInstanceResultMapper.Enhancer> resultMapperEnhancers
public WorkInstanceSearchRepresentation convertHit(com.fasterxml.jackson.databind.JsonNode hitNode)
ElasticsearchResultConverter.ResultMapper
convertHit
in interface ElasticsearchResultConverter.ResultMapper<WorkInstanceSearchRepresentation>
hitNode
- the full hit document node as being returned by Elasticsearchpublic WorkInstanceSearchRepresentation convert(com.fasterxml.jackson.databind.JsonNode sourceNode)
ElasticsearchResultConverter.ResultMapper
convert
in interface ElasticsearchResultConverter.ResultMapper<WorkInstanceSearchRepresentation>
sourceNode
- the source object as being returned within the Elasticsearch hit documentprotected WorkInstanceSearchRepresentation convertWithoutEnhancer(com.fasterxml.jackson.databind.JsonNode jsonNode)
public List<WorkInstanceResultMapper.Enhancer> getResultMapperEnhancers()
public void setResultMapperEnhancers(List<WorkInstanceResultMapper.Enhancer> resultMapperEnhancers)