public class SolrHeroProductValidator extends Object implements ValidateInterceptor
SolrHeroProductDefinitionModel. One given pair of category / solr search config can have only
one SolrHeroProductDefinitionModel.| Constructor and Description |
|---|
SolrHeroProductValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
heroProductAlreadyOnList(SolrHeroProductDefinitionModel heroProduct,
List<SolrHeroProductDefinitionModel> solrHeroProductDefinitions) |
void |
onValidate(Object model,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setHeroProductDefinitionDao(HeroProductDefinitionDao heroProductDefinitionDao) |
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 heroProductAlreadyOnList(SolrHeroProductDefinitionModel heroProduct, List<SolrHeroProductDefinitionModel> solrHeroProductDefinitions)
public void setHeroProductDefinitionDao(HeroProductDefinitionDao heroProductDefinitionDao)
Copyright © 2017 SAP SE. All Rights Reserved.