Class SolrIndexedPropertyValidateInterceptor
java.lang.Object
de.hybris.platform.solrfacetsearch.interceptors.SolrIndexedPropertyValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<SolrIndexedPropertyModel>
public class SolrIndexedPropertyValidateInterceptor
extends Object
implements ValidateInterceptor<SolrIndexedPropertyModel>
Validate interceptor for
SolrIndexedPropertyModel. Checks if facet is of allowed type.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(SolrIndexedPropertyModel model, InterceptorContext interceptorContext) Called in themodelService.saveAll()method.voidsetSolrIndexedPropertyTypeRegistry(SolrIndexedPropertyTypeRegistry solrIndexedPropertyTypeRegistry)
-
Constructor Details
-
SolrIndexedPropertyValidateInterceptor
public SolrIndexedPropertyValidateInterceptor()
-
-
Method Details
-
onValidate
public void onValidate(SolrIndexedPropertyModel model, InterceptorContext interceptorContext) throws InterceptorException Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<SolrIndexedPropertyModel>- Parameters:
model- the model which values has to be validatedinterceptorContext- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
getSolrIndexedPropertyTypeRegistry
-
setSolrIndexedPropertyTypeRegistry
public void setSolrIndexedPropertyTypeRegistry(SolrIndexedPropertyTypeRegistry solrIndexedPropertyTypeRegistry)
-