Class AsFacetRangeInterceptor
java.lang.Object
de.hybris.platform.adaptivesearch.model.interceptors.AbstractAsInterceptor
de.hybris.platform.adaptivesearch.model.interceptors.AsFacetRangeInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<AsFacetRangeModel>,RemoveInterceptor<AsFacetRangeModel>,ValidateInterceptor<AsFacetRangeModel>
public class AsFacetRangeInterceptor
extends AbstractAsInterceptor
implements PrepareInterceptor<AsFacetRangeModel>, ValidateInterceptor<AsFacetRangeModel>, RemoveInterceptor<AsFacetRangeModel>
Interceptor for
AbstractAsFacetConfigurationModel.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonPrepare(AsFacetRangeModel facetRangeModel, InterceptorContext context) Called in themodelService.saveAll()method.voidonRemove(AsFacetRangeModel facetRangeModel, InterceptorContext context) Called in themodelService.removeAll()method.voidonValidate(AsFacetRangeModel facetRangeModel, InterceptorContext context) Called in themodelService.saveAll()method.protected AbstractAsFacetConfigurationModelprotected AbstractAsFacetConfigurationModelprotected voidupdateUniqueIdx(AsFacetRangeModel facetRange) Methods inherited from class de.hybris.platform.adaptivesearch.model.interceptors.AbstractAsInterceptor
decorateIdentifier, generateItemIdentifier, generateUid, getAsItemModelHelper, getAsSearchProviderFactory, getAsUidGenerator, getModelService, getNewPkForNotSavedItem, markItemAsModified, resolveAndValidateSearchConfiguration, resolveAndValidateSearchProfile, resolveSearchConfiguration, resolveSearchProfile, resolveSearchProvider, setAsItemModelHelper, setAsSearchProviderFactory, setAsUidGenerator, setModelService
-
Constructor Details
-
AsFacetRangeInterceptor
public AsFacetRangeInterceptor()
-
-
Method Details
-
onPrepare
public void onPrepare(AsFacetRangeModel facetRangeModel, InterceptorContext context) throws InterceptorException Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor<AsFacetRangeModel>- Parameters:
facetRangeModel- the model which values has to be preparedcontext- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
updateUniqueIdx
-
onValidate
public void onValidate(AsFacetRangeModel facetRangeModel, InterceptorContext context) throws InterceptorException Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<AsFacetRangeModel>- Parameters:
facetRangeModel- the model which values has to be validatedcontext- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
onRemove
public void onRemove(AsFacetRangeModel facetRangeModel, InterceptorContext context) throws InterceptorException Description copied from interface:RemoveInterceptorCalled in themodelService.removeAll()method.- Specified by:
onRemovein interfaceRemoveInterceptor<AsFacetRangeModel>- Parameters:
facetRangeModel- the model which should be removedcontext- theInterceptorContext- Throws:
InterceptorException- if the remove reports an error
-
resolveFacetConfiguration
-
resolveAndValidateFacetConfiguration
protected AbstractAsFacetConfigurationModel resolveAndValidateFacetConfiguration(ItemModel model) throws InterceptorException - Throws:
InterceptorException
-