Class CodeGenerationConfigurationUsageValidateInterceptor
- java.lang.Object
-
- de.hybris.platform.couponservices.interceptor.CodeGenerationConfigurationUsageValidateInterceptor
-
- All Implemented Interfaces:
Interceptor,RemoveInterceptor<CodeGenerationConfigurationModel>
public class CodeGenerationConfigurationUsageValidateInterceptor extends java.lang.Object implements RemoveInterceptor<CodeGenerationConfigurationModel>
CodeGenerationConfigurationUsageValidateInterceptor validates whetherCodeGenerationConfigurationModelis assigned to at least once @{linkAbstractCouponModel. If the check is evaluated positively then configuration cannot be removed
-
-
Constructor Summary
Constructors Constructor Description CodeGenerationConfigurationUsageValidateInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CouponDaogetCouponDao()protected L10NServicegetL10NService()voidonRemove(CodeGenerationConfigurationModel configuration, InterceptorContext ctx)Called in themodelService.removeAll()method.voidsetCouponDao(CouponDao couponDao)voidsetL10NService(L10NService l10NService)
-
-
-
Method Detail
-
onRemove
public void onRemove(CodeGenerationConfigurationModel configuration, InterceptorContext ctx) throws InterceptorException
Description copied from interface:RemoveInterceptorCalled in themodelService.removeAll()method.- Specified by:
onRemovein interfaceRemoveInterceptor<CodeGenerationConfigurationModel>- Parameters:
configuration- the model which should be removedctx- theInterceptorContext- Throws:
InterceptorException- if the remove reports an error
-
getCouponDao
protected CouponDao getCouponDao()
-
setCouponDao
public void setCouponDao(CouponDao couponDao)
-
getL10NService
protected L10NService getL10NService()
-
setL10NService
public void setL10NService(L10NService l10NService)
-
-