Class AsBoostRuleInterceptor
java.lang.Object
de.hybris.platform.adaptivesearch.model.interceptors.AbstractAsInterceptor
de.hybris.platform.adaptivesearch.model.interceptors.AsBoostRuleInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<AsBoostRuleModel>,RemoveInterceptor<AsBoostRuleModel>,ValidateInterceptor<AsBoostRuleModel>
public class AsBoostRuleInterceptor
extends AbstractAsInterceptor
implements PrepareInterceptor<AsBoostRuleModel>, ValidateInterceptor<AsBoostRuleModel>, RemoveInterceptor<AsBoostRuleModel>
Interceptor for
AsBoostRuleModel.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonPrepare(AsBoostRuleModel boostRule, InterceptorContext context) Called in themodelService.saveAll()method.voidonRemove(AsBoostRuleModel boostRule, InterceptorContext context) Called in themodelService.removeAll()method.voidonValidate(AsBoostRuleModel boostRule, InterceptorContext context) Called in themodelService.saveAll()method.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
-
AsBoostRuleInterceptor
public AsBoostRuleInterceptor()
-
-
Method Details
-
onPrepare
public void onPrepare(AsBoostRuleModel boostRule, InterceptorContext context) throws InterceptorException Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor<AsBoostRuleModel>- Parameters:
boostRule- the model which values has to be preparedcontext- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
onValidate
public void onValidate(AsBoostRuleModel boostRule, InterceptorContext context) throws InterceptorException Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<AsBoostRuleModel>- Parameters:
boostRule- the model which values has to be validatedcontext- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
onRemove
public void onRemove(AsBoostRuleModel boostRule, InterceptorContext context) throws InterceptorException Description copied from interface:RemoveInterceptorCalled in themodelService.removeAll()method.- Specified by:
onRemovein interfaceRemoveInterceptor<AsBoostRuleModel>- Parameters:
boostRule- the model which should be removedcontext- theInterceptorContext- Throws:
InterceptorException- if the remove reports an error
-