public class SolrRangeValueInterceptor extends Object implements ValidateInterceptor
SolrValueRangeModel are set properly| Constructor and Description |
|---|
SolrRangeValueInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
onValidate(Object model,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
protected Date |
parseDate(String value) |
protected double |
parseDouble(String value,
boolean allowEmpty) |
protected float |
parseFloat(String value,
boolean allowEmpty) |
protected int |
parseInt(String value,
boolean allowEmpty) |
public void onValidate(Object model, InterceptorContext ctx) throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptormodel - the model which values has to be validatedctx - the InterceptorContextInterceptorException - if any values of the model are not valid.protected double parseDouble(String value, boolean allowEmpty) throws InterceptorException
InterceptorExceptionprotected float parseFloat(String value, boolean allowEmpty) throws InterceptorException
InterceptorExceptionprotected int parseInt(String value, boolean allowEmpty) throws InterceptorException
InterceptorExceptionprotected Date parseDate(String value) throws InterceptorException
InterceptorExceptionCopyright © 2017 SAP SE. All Rights Reserved.