Class MultiSiteBaseSiteRemoveInterceptor
java.lang.Object
de.hybris.platform.commerceservices.multisite.interceptors.MultiSiteBaseSiteRemoveInterceptor
- All Implemented Interfaces:
Interceptor,RemoveInterceptor<BaseSiteModel>
public class MultiSiteBaseSiteRemoveInterceptor
extends Object
implements RemoveInterceptor<BaseSiteModel>
Prevent removing the BaseSite once it is already used in somewhere
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CustomerServicevoidonRemove(BaseSiteModel baseSiteModel, InterceptorContext ctx) Called in themodelService.removeAll()method.voidsetCustomerService(CustomerService customerService)
-
Constructor Details
-
MultiSiteBaseSiteRemoveInterceptor
public MultiSiteBaseSiteRemoveInterceptor()
-
-
Method Details
-
onRemove
public void onRemove(BaseSiteModel baseSiteModel, InterceptorContext ctx) throws InterceptorException Description copied from interface:RemoveInterceptorCalled in themodelService.removeAll()method.- Specified by:
onRemovein interfaceRemoveInterceptor<BaseSiteModel>- Parameters:
baseSiteModel- the model which should be removedctx- theInterceptorContext- Throws:
InterceptorException- if the remove reports an error
-
getCustomerService
-
setCustomerService
-