Class SolrRangeValueInterceptor
java.lang.Object
de.hybris.platform.solrfacetsearch.config.impl.SolrRangeValueInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
Interceptor that checks if ranges of
SolrValueRangeModel are set properly-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.protected Dateprotected doubleparseDouble(String value, boolean allowEmpty) protected floatparseFloat(String value, boolean allowEmpty) protected int
-
Constructor Details
-
SolrRangeValueInterceptor
public SolrRangeValueInterceptor()
-
-
Method Details
-
onValidate
Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor- Parameters:
model- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
parseDouble
- Throws:
InterceptorException
-
parseFloat
- Throws:
InterceptorException
-
parseInt
- Throws:
InterceptorException
-
parseDate
- Throws:
InterceptorException
-