Class BeanShellValidationStrategy
- java.lang.Object
-
- de.hybris.platform.validation.validators.BeanShellValidationStrategy
-
- All Implemented Interfaces:
DynamicValidationStrategy
public class BeanShellValidationStrategy extends java.lang.Object implements DynamicValidationStrategy
Bean shell validation mechanism evals provided expression and checks if the result might somehow interpreted as boolean value. Creates instance of
Interpreterper validation call.At this moment in beanshell context current validated object is accessible as current e.g
ProductModel.CODEwill be available as getCode(). There is also available explicitJaloSessionobject as "jaloSession". (It might somehow inefficient to create BSH interpreter for every validation.)
-
-
Constructor Summary
Constructors Constructor Description BeanShellValidationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanvalidate(java.lang.String expression, java.lang.Object argument)TODO: apidoc
-
-
-
Method Detail
-
validate
public boolean validate(java.lang.String expression, java.lang.Object argument)Description copied from interface:DynamicValidationStrategyTODO: apidoc- Specified by:
validatein interfaceDynamicValidationStrategy
-
-