Class MerchSnConfigValidateInterceptor
java.lang.Object
com.hybris.merchandising.listeners.MerchSnConfigValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<MerchSnConfigModel>
public class MerchSnConfigValidateInterceptor
extends Object
implements ValidateInterceptor<MerchSnConfigModel>
Interceptor for synchronizing
MerchSnConfigModel items with Catalog Service-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(MerchSnConfigModel merchSnConfigModel, InterceptorContext interceptorContext) Called in themodelService.saveAll()method.voidsetMerchSnConfigService(MerchSnConfigService merchSnConfigService)
-
Constructor Details
-
MerchSnConfigValidateInterceptor
public MerchSnConfigValidateInterceptor()
-
-
Method Details
-
setMerchSnConfigService
-
onValidate
public void onValidate(MerchSnConfigModel merchSnConfigModel, InterceptorContext interceptorContext) throws InterceptorException Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<MerchSnConfigModel>- Parameters:
merchSnConfigModel- the model which values has to be validatedinterceptorContext- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-