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 IndexManagerprotected 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 PlatformGlobalSearchRepresentationconvertCaseInstance(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 PlatformGlobalSearchRepresentationconvertProcessInstance(com.fasterxml.jackson.databind.JsonNode sourceNode) protected PlatformGlobalSearchRepresentationconvertTaskInstance(com.fasterxml.jackson.databind.JsonNode sourceNode) protected PlatformGlobalSearchRepresentationconvertWorkInstance(com.fasterxml.jackson.databind.JsonNode sourceNode) protected voidhandleIdentityLinks(com.fasterxml.jackson.databind.JsonNode jsonNode, PlatformGlobalSearchRepresentation response) voidsetResultMapperEnhancers(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.ResultMapperImplement 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:
convertHitin 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.ResultMapperConverts the given source node (not the full Elasticsearch hit document, just the source object within it).- Specified by:
convertin 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)
-