Class SolrRangeValueInterceptor
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.config.impl.SolrRangeValueInterceptor
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
public class SolrRangeValueInterceptor extends java.lang.Object implements ValidateInterceptor
Interceptor that checks if ranges ofSolrValueRangeModelare set properly
-
-
Constructor Summary
Constructors Constructor Description SolrRangeValueInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonValidate(java.lang.Object model, InterceptorContext ctx)Called in themodelService.saveAll()method.protected java.util.DateparseDate(java.lang.String value)protected doubleparseDouble(java.lang.String value, boolean allowEmpty)protected floatparseFloat(java.lang.String value, boolean allowEmpty)protected intparseInt(java.lang.String value, boolean allowEmpty)
-
-
-
Method Detail
-
onValidate
public void onValidate(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionDescription 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
protected double parseDouble(java.lang.String value, boolean allowEmpty) throws InterceptorException- Throws:
InterceptorException
-
parseFloat
protected float parseFloat(java.lang.String value, boolean allowEmpty) throws InterceptorException- Throws:
InterceptorException
-
parseInt
protected int parseInt(java.lang.String value, boolean allowEmpty) throws InterceptorException- Throws:
InterceptorException
-
parseDate
protected java.util.Date parseDate(java.lang.String value) throws InterceptorException- Throws:
InterceptorException
-
-