Class ProductConfigurationRemoveInterceptor
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.services.interceptor.ProductConfigurationRemoveInterceptor
-
- All Implemented Interfaces:
Interceptor,RemoveInterceptor<AbstractOrderEntryModel>
public class ProductConfigurationRemoveInterceptor extends java.lang.Object implements RemoveInterceptor<AbstractOrderEntryModel>
This Interceptor ensures, that no orphaned product configurations exist after an abstract order entry gets deleted.
-
-
Constructor Summary
Constructors Constructor Description ProductConfigurationRemoveInterceptor()
-
Method Summary
-
-
-
Method Detail
-
onRemove
public void onRemove(AbstractOrderEntryModel model, InterceptorContext ctx) throws InterceptorException
Description copied from interface:RemoveInterceptorCalled in themodelService.removeAll()method.- Specified by:
onRemovein interfaceRemoveInterceptor<AbstractOrderEntryModel>- Parameters:
model- the model which should be removedctx- theInterceptorContext- Throws:
InterceptorException- if the remove reports an error
-
releaseConfigIfPossible
protected void releaseConfigIfPossible(AbstractOrderEntryModel model, ProductConfigurationModel productConfiguration, boolean ignoreProductRelation)
-
checkBaseSiteAvailable
protected boolean checkBaseSiteAvailable(java.lang.String configId)
-
releaseConfigIfOrphaned
protected void releaseConfigIfOrphaned(java.lang.String cartEntryKey, java.lang.String configId)
-
getProductConfigurationPersistenceService
protected ProductConfigurationPersistenceService getProductConfigurationPersistenceService()
-
setProductConfigurationPersistenceService
public void setProductConfigurationPersistenceService(ProductConfigurationPersistenceService productConfigurationPersistenceService)
-
getConfigurationLifecycleStrategy
protected ConfigurationLifecycleStrategy getConfigurationLifecycleStrategy()
-
setConfigurationLifecycleStrategy
public void setConfigurationLifecycleStrategy(ConfigurationLifecycleStrategy configurationLifecycleStrategy)
-
getBaseSiteService
protected BaseSiteService getBaseSiteService()
-
setBaseSiteService
public void setBaseSiteService(BaseSiteService baseSiteService)
-
getProductConfigEventListenerUtil
protected ProductConfigEventListenerUtil getProductConfigEventListenerUtil()
-
setProductConfigEventListenerUtil
public void setProductConfigEventListenerUtil(ProductConfigEventListenerUtil productConfigEventListenerUtil)
-
-