Class AsCategoryAwareSearchConfigurationInterceptor
java.lang.Object
de.hybris.platform.adaptivesearch.model.interceptors.AbstractAsInterceptor
de.hybris.platform.adaptivesearch.model.interceptors.AsCategoryAwareSearchConfigurationInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<AsCategoryAwareSearchConfigurationModel>
public class AsCategoryAwareSearchConfigurationInterceptor
extends AbstractAsInterceptor
implements PrepareInterceptor<AsCategoryAwareSearchConfigurationModel>
Interceptor for
AsCategoryAwareSearchConfigurationModel.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisUniqueIdxChangeAllowed(String previousUniqueIdx, String uniqueIdx) When a category is removed the platform automatically sets the reference tonull.voidonPrepare(AsCategoryAwareSearchConfigurationModel searchConfiguration, InterceptorContext context) Called in themodelService.saveAll()method.protected voidupdateUniqueIdx(AsCategoryAwareSearchConfigurationModel searchConfiguration) 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
-
AsCategoryAwareSearchConfigurationInterceptor
public AsCategoryAwareSearchConfigurationInterceptor()
-
-
Method Details
-
onPrepare
public void onPrepare(AsCategoryAwareSearchConfigurationModel searchConfiguration, InterceptorContext context) Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor<AsCategoryAwareSearchConfigurationModel>- Parameters:
searchConfiguration- the model which values has to be preparedcontext- theInterceptorContext
-
updateUniqueIdx
-
isUniqueIdxChangeAllowed
When a category is removed the platform automatically sets the reference tonull. This method prevents the uniqueIdx from being updated in such cases.
-