@Component(value="blRuleFieldExtractionUtility") public class RuleFieldExtractionUtility extends Object
RuleFieldPersistenceProvider and RuleFieldValidator| Modifier and Type | Field and Description |
|---|---|
protected RuleBuilderFieldServiceFactory |
ruleBuilderFieldServiceFactory |
| Constructor and Description |
|---|
RuleFieldExtractionUtility() |
| Modifier and Type | Method and Description |
|---|---|
String |
convertDTOToMvelString(DataDTOToMVELTranslator translator,
String entityKey,
DataDTO dto,
String fieldService) |
DataWrapper |
convertJsonToDataWrapper(String json)
Takes a JSON string that came from the frontend form submission and deserializes it into its
DataWrapper dto
representation so that it can be converted to an MVEL expression |
String |
convertSimpleMatchRuleJsonToMvel(DataDTOToMVELTranslator translator,
String entityKey,
String fieldService,
DataWrapper dw)
Converts the given
DataWrapper into an MVEL expression |
Property |
convertSimpleRuleToJson(MVELToDataWrapperTranslator translator,
com.fasterxml.jackson.databind.ObjectMapper mapper,
String matchRule,
String jsonProp,
String fieldService)
Converts a simple MVEL rule into its JSON representation suitable for adding to an
Entity to pass to the
frontend. |
protected RuleBuilderFieldServiceFactory ruleBuilderFieldServiceFactory
public DataWrapper convertJsonToDataWrapper(String json)
DataWrapper dto
representation so that it can be converted to an MVEL expressionjson - public String convertSimpleMatchRuleJsonToMvel(DataDTOToMVELTranslator translator, String entityKey, String fieldService, DataWrapper dw) throws MVELTranslationException
DataWrapper into an MVEL expressiontranslator - entityKey - fieldService - dw - MVELTranslationExceptionpublic String convertDTOToMvelString(DataDTOToMVELTranslator translator, String entityKey, DataDTO dto, String fieldService) throws MVELTranslationException
MVELTranslationExceptionpublic Property convertSimpleRuleToJson(MVELToDataWrapperTranslator translator, com.fasterxml.jackson.databind.ObjectMapper mapper, String matchRule, String jsonProp, String fieldService)
Entity to pass to the
frontend.translator - mapper - matchRule - jsonProp - fieldService - Copyright © 2015. All rights reserved.