Class MultiSiteCustomerValidateInterceptor
java.lang.Object
de.hybris.platform.commerceservices.multisite.interceptors.MultiSiteCustomerValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<CustomerModel>
public class MultiSiteCustomerValidateInterceptor
extends Object
implements ValidateInterceptor<CustomerModel>
Ensure customer is attached to isolated site
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MultiSiteUidDecorationServicevoidonValidate(CustomerModel customer, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetMultiSiteUidDecorationService(MultiSiteUidDecorationService multiSiteUidDecorationService)
-
Constructor Details
-
MultiSiteCustomerValidateInterceptor
public MultiSiteCustomerValidateInterceptor()
-
-
Method Details
-
onValidate
Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<CustomerModel>- Parameters:
customer- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
getMultiSiteUidDecorationService
-
setMultiSiteUidDecorationService
public void setMultiSiteUidDecorationService(MultiSiteUidDecorationService multiSiteUidDecorationService)
-