Class MultiSiteBaseSiteValidateInterceptor
java.lang.Object
de.hybris.platform.commerceservices.multisite.interceptors.MultiSiteBaseSiteValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<BaseSiteModel>
public class MultiSiteBaseSiteValidateInterceptor
extends Object
implements ValidateInterceptor<BaseSiteModel>
Prevent updating the BaseSite once it is already used in somewhere
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CustomerServicevoidonValidate(BaseSiteModel baseSiteModel, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetCustomerService(CustomerService customerService)
-
Constructor Details
-
MultiSiteBaseSiteValidateInterceptor
public MultiSiteBaseSiteValidateInterceptor()
-
-
Method Details
-
onValidate
public void onValidate(BaseSiteModel baseSiteModel, InterceptorContext ctx) throws InterceptorException Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<BaseSiteModel>- Parameters:
baseSiteModel- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
getCustomerService
-
setCustomerService
-