Class SolrIndexedPropertyValidateInterceptor
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.interceptors.SolrIndexedPropertyValidateInterceptor
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<SolrIndexedPropertyModel>
public class SolrIndexedPropertyValidateInterceptor extends java.lang.Object implements ValidateInterceptor<SolrIndexedPropertyModel>
Validate interceptor forSolrIndexedPropertyModel. Checks if facet is of allowed type.
-
-
Constructor Summary
Constructors Constructor Description SolrIndexedPropertyValidateInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SolrIndexedPropertyTypeRegistrygetSolrIndexedPropertyTypeRegistry()voidonValidate(SolrIndexedPropertyModel model, InterceptorContext interceptorContext)Called in themodelService.saveAll()method.voidsetSolrIndexedPropertyTypeRegistry(SolrIndexedPropertyTypeRegistry solrIndexedPropertyTypeRegistry)
-
-
-
Method Detail
-
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
public SolrIndexedPropertyTypeRegistry getSolrIndexedPropertyTypeRegistry()
-
setSolrIndexedPropertyTypeRegistry
public void setSolrIndexedPropertyTypeRegistry(SolrIndexedPropertyTypeRegistry solrIndexedPropertyTypeRegistry)
-
-