Class PlatformGlobalSearchJsonMapper
java.lang.Object
com.flowable.platform.service.BaseJsonMapper<PlatformGlobalSearchRepresentation>
com.flowable.platform.service.work.PlatformGlobalSearchJsonMapper
- All Implemented Interfaces:
ElasticsearchResultConverter.ResultMapper<PlatformGlobalSearchRepresentation>
,PlatformGlobalSearchResultMapper
public class PlatformGlobalSearchJsonMapper
extends BaseJsonMapper<PlatformGlobalSearchRepresentation>
implements PlatformGlobalSearchResultMapper
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.flowable.platform.service.work.PlatformGlobalSearchResultMapper
PlatformGlobalSearchResultMapper.Enhancer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IndexManager
protected List
<PlatformGlobalSearchResultMapper.Enhancer> Fields inherited from class com.flowable.platform.service.BaseJsonMapper
objectMapper
-
Constructor Summary
ConstructorsConstructorDescriptionPlatformGlobalSearchJsonMapper
(com.fasterxml.jackson.databind.ObjectMapper objectMapper, IndexManager indexManager) -
Method Summary
Modifier and TypeMethodDescriptionconvert
(com.fasterxml.jackson.databind.JsonNode sourceNode) Converts the given source node (not the full Elasticsearch hit document, just the source object within it).protected PlatformGlobalSearchRepresentation
convertCaseInstance
(com.fasterxml.jackson.databind.JsonNode sourceNode) 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 PlatformGlobalSearchRepresentation
convertProcessInstance
(com.fasterxml.jackson.databind.JsonNode sourceNode) protected PlatformGlobalSearchRepresentation
convertTaskInstance
(com.fasterxml.jackson.databind.JsonNode sourceNode) protected PlatformGlobalSearchRepresentation
convertWorkInstance
(com.fasterxml.jackson.databind.JsonNode sourceNode) protected void
handleIdentityLinks
(com.fasterxml.jackson.databind.JsonNode jsonNode, PlatformGlobalSearchRepresentation response) void
setResultMapperEnhancers
(List<PlatformGlobalSearchResultMapper.Enhancer> resultMapperEnhancers) Methods inherited from class com.flowable.platform.service.BaseJsonMapper
createScopeSearchInfo, createTranslationSearchResponses, flattenVariables, transformVariableNode
-
Field Details
-
resultMapperEnhancers
-
indexManager
-
-
Constructor Details
-
PlatformGlobalSearchJsonMapper
public PlatformGlobalSearchJsonMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper, IndexManager indexManager)
-
-
Method Details
-
convertHit
public PlatformGlobalSearchRepresentation convertHit(com.fasterxml.jackson.databind.JsonNode hitNode) Description copied from interface:ElasticsearchResultConverter.ResultMapper
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.- Specified by:
convertHit
in interfaceElasticsearchResultConverter.ResultMapper<PlatformGlobalSearchRepresentation>
- Parameters:
hitNode
- the full hit document node as being returned by Elasticsearch- Returns:
- the response object with the mapped / extracted data from the hit
-
convert
public PlatformGlobalSearchRepresentation convert(com.fasterxml.jackson.databind.JsonNode sourceNode) Description copied from interface:ElasticsearchResultConverter.ResultMapper
Converts the given source node (not the full Elasticsearch hit document, just the source object within it).- Specified by:
convert
in interfaceElasticsearchResultConverter.ResultMapper<PlatformGlobalSearchRepresentation>
- Parameters:
sourceNode
- the source object as being returned within the Elasticsearch hit document- Returns:
- the converted response object
-
convertWorkInstance
protected PlatformGlobalSearchRepresentation convertWorkInstance(com.fasterxml.jackson.databind.JsonNode sourceNode) -
convertCaseInstance
protected PlatformGlobalSearchRepresentation convertCaseInstance(com.fasterxml.jackson.databind.JsonNode sourceNode) -
convertProcessInstance
protected PlatformGlobalSearchRepresentation convertProcessInstance(com.fasterxml.jackson.databind.JsonNode sourceNode) -
convertTaskInstance
protected PlatformGlobalSearchRepresentation convertTaskInstance(com.fasterxml.jackson.databind.JsonNode sourceNode) -
handleIdentityLinks
protected void handleIdentityLinks(com.fasterxml.jackson.databind.JsonNode jsonNode, PlatformGlobalSearchRepresentation response) -
getResultMapperEnhancers
-
setResultMapperEnhancers
public void setResultMapperEnhancers(List<PlatformGlobalSearchResultMapper.Enhancer> resultMapperEnhancers)
-