public class BoostRuleValidator extends Object implements ValidateInterceptor
SolrBoostRuleModel.| Constructor and Description |
|---|
BoostRuleValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
hasRange(SolrIndexedPropertyModel solrIndexedProperty) |
void |
onValidate(Object model,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setBoostOperatorsRegistry(BoostOperatorsRegistry boostOperatorsRegistry) |
void |
setL10nService(L10NService l10NService) |
void |
setMaxBoostFactorValue(double maxBoostFactorValue)
The max boost factor for the product boost rule.
|
void |
setValidators(Set<BoostValueValidator> validators) |
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 boolean hasRange(SolrIndexedPropertyModel solrIndexedProperty)
public void setBoostOperatorsRegistry(BoostOperatorsRegistry boostOperatorsRegistry)
public void setValidators(Set<BoostValueValidator> validators)
public void setL10nService(L10NService l10NService)
public void setMaxBoostFactorValue(double maxBoostFactorValue)
Copyright © 2017 SAP SE. All Rights Reserved.