Class SolrIndexedPropertyLoadInterceptor
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.config.impl.SolrIndexedPropertyLoadInterceptor
-
- All Implemented Interfaces:
Interceptor,LoadInterceptor
public class SolrIndexedPropertyLoadInterceptor extends java.lang.Object implements LoadInterceptor
Load interceptor forSolrIndexedPropertyModelwhich loads defaultFacetSortProvidername for the indexed property in case no bean id was defined. The default bean id can be configured via spring:setDefaultFacetSortProvider(String)
-
-
Constructor Summary
Constructors Constructor Description SolrIndexedPropertyLoadInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonLoad(java.lang.Object model, InterceptorContext ctx)If a model is loaded from the database this method is called by the model service.voidsetDefaultFacetSortProvider(java.lang.String defaultFacetSortProvider)
-
-
-
Method Detail
-
onLoad
public void onLoad(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionDescription copied from interface:LoadInterceptorIf a model is loaded from the database this method is called by the model service.- Specified by:
onLoadin interfaceLoadInterceptor- Parameters:
model- the model to be loadedctx- theInterceptorContext- Throws:
InterceptorException- if the model could not be loaded
-
setDefaultFacetSortProvider
public void setDefaultFacetSortProvider(java.lang.String defaultFacetSortProvider)
-
-