@Component public class TagHelper extends Object
| Constructor and Description |
|---|
TagHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
executeFunctionForTagEntities(String indexName,
String documentType,
List<TagEntity> tagEntities,
QuadConsumer<String,String,String,String> function)
Executes a function for tag entities.
|
String |
safeObjectMapperWriteValueAsString(TagEntity tagEntity)
Wrapper method that will safely call the object mapper write value as string method and handle the JsonProcessingException.
|
void |
validateTagKey(TagKey tagKey)
Validates a tag key.
|
public void executeFunctionForTagEntities(String indexName, String documentType, List<TagEntity> tagEntities, QuadConsumer<String,String,String,String> function)
indexName - the name of the indexdocumentType - the document typetagEntities - the list of tag entitiesfunction - the function to apply to all tagspublic String safeObjectMapperWriteValueAsString(TagEntity tagEntity)
tagEntity - the entity to convert to JSONpublic void validateTagKey(TagKey tagKey) throws IllegalArgumentException
tagKey - the tag keyIllegalArgumentException - if any validation errors were foundCopyright © 2019. All rights reserved.