@Component(value="blRuleFieldValidator") public class RuleFieldValidator extends Object implements PopulateValueRequestValidator
RuleFieldPersistenceProvider.| Modifier and Type | Field and Description |
|---|---|
protected static String |
ERROR_KEY_EXPRESSION_NOT_ALLOWED |
protected RuleFieldExtractionUtility |
ruleFieldExtractionUtility |
protected SandBoxHelper |
sandBoxHelper |
| Constructor and Description |
|---|
RuleFieldValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canHandleValidation(PopulateValueRequest populateValueRequest) |
protected String |
getMvelParsingErrorMesage(DataWrapper dw,
MVELTranslationException e) |
int |
getOrder() |
protected boolean |
isAllowed(String mvel) |
protected boolean |
isAllowedQuantityRule(String mvel)
Quantity based rules are stored after
RuleFieldPersistenceProvider unescapes their quotes, so they are
checked the way they are stored |
PropertyValidationResult |
validate(PopulateValueRequest populateValueRequest,
Serializable instance)
Validates a population request prior to invoking any
FieldPersistenceProviders. |
protected static final String ERROR_KEY_EXPRESSION_NOT_ALLOWED
protected RuleFieldExtractionUtility ruleFieldExtractionUtility
protected SandBoxHelper sandBoxHelper
public PropertyValidationResult validate(PopulateValueRequest populateValueRequest, Serializable instance)
PopulateValueRequestValidatorFieldPersistenceProviders. If no validation could be
performed for the given PopulateValueRequest then return true to let it pass on to a different
PopulateValueRequestValidator or on to a FieldPersistenceProvider.validate in interface PopulateValueRequestValidatorpopulateValueRequest - the PopulateValueRequest that should be validatedinstance - the Hibernate entity that will attempt to be populatedPopulateValueRequest failed validation. In this case, the request should not be passed
to any FieldPersistenceProviders.protected boolean isAllowed(String mvel)
protected boolean isAllowedQuantityRule(String mvel)
RuleFieldPersistenceProvider unescapes their quotes, so they are
checked the way they are storedprotected String getMvelParsingErrorMesage(DataWrapper dw, MVELTranslationException e)
protected boolean canHandleValidation(PopulateValueRequest populateValueRequest)
public int getOrder()
getOrder in interface org.springframework.core.OrderedCopyright © 2026. All rights reserved.