Class AsSearchConfigurationInterceptor
- java.lang.Object
-
- de.hybris.platform.adaptivesearch.model.interceptors.AbstractAsInterceptor
-
- de.hybris.platform.adaptivesearch.model.interceptors.AsSearchConfigurationInterceptor
-
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<AbstractAsSearchConfigurationModel>,RemoveInterceptor<AbstractAsSearchConfigurationModel>,ValidateInterceptor<AbstractAsSearchConfigurationModel>
public class AsSearchConfigurationInterceptor extends AbstractAsInterceptor implements PrepareInterceptor<AbstractAsSearchConfigurationModel>, ValidateInterceptor<AbstractAsSearchConfigurationModel>, RemoveInterceptor<AbstractAsSearchConfigurationModel>
Interceptor forAbstractAsSearchConfigurationModel.
-
-
Constructor Summary
Constructors Constructor Description AsSearchConfigurationInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonPrepare(AbstractAsSearchConfigurationModel searchConfiguration, InterceptorContext context)Called in themodelService.saveAll()method.voidonRemove(AbstractAsSearchConfigurationModel searchConfiguration, InterceptorContext context)Called in themodelService.removeAll()method.voidonValidate(AbstractAsSearchConfigurationModel searchConfiguration, InterceptorContext context)Called in themodelService.saveAll()method.-
Methods inherited from class de.hybris.platform.adaptivesearch.model.interceptors.AbstractAsInterceptor
decorateIdentifier, generateItemIdentifier, generateUid, getAsUidGenerator, getModelService, getNewPkForNotSavedItem, getSearchProviderFactory, markItemAsModified, resolveAndValidateSearchConfiguration, resolveAndValidateSearchProfile, resolveSearchConfiguration, resolveSearchProfile, resolveSearchProvider, setAsUidGenerator, setModelService, setSearchProviderFactory
-
-
-
-
Method Detail
-
onPrepare
public void onPrepare(AbstractAsSearchConfigurationModel searchConfiguration, InterceptorContext context) throws InterceptorException
Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor<AbstractAsSearchConfigurationModel>- Parameters:
searchConfiguration- the model which values has to be preparedcontext- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
onValidate
public void onValidate(AbstractAsSearchConfigurationModel searchConfiguration, InterceptorContext context) throws InterceptorException
Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<AbstractAsSearchConfigurationModel>- Parameters:
searchConfiguration- the model which values has to be validatedcontext- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
onRemove
public void onRemove(AbstractAsSearchConfigurationModel searchConfiguration, InterceptorContext context) throws InterceptorException
Description copied from interface:RemoveInterceptorCalled in themodelService.removeAll()method.- Specified by:
onRemovein interfaceRemoveInterceptor<AbstractAsSearchConfigurationModel>- Parameters:
searchConfiguration- the model which should be removedcontext- theInterceptorContext- Throws:
InterceptorException- if the remove reports an error
-
-