Class CodeGenerationConfigurationUsageValidateInterceptor
java.lang.Object
de.hybris.platform.couponservices.interceptor.CodeGenerationConfigurationUsageValidateInterceptor
- All Implemented Interfaces:
Interceptor,RemoveInterceptor<CodeGenerationConfigurationModel>
public class CodeGenerationConfigurationUsageValidateInterceptor
extends Object
implements RemoveInterceptor<CodeGenerationConfigurationModel>
CodeGenerationConfigurationUsageValidateInterceptor validates whether
CodeGenerationConfigurationModel is
assigned to at least once @{link AbstractCouponModel. If the check is
evaluated positively then configuration cannot be removed-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CouponDaoprotected L10NServicevoidonRemove(CodeGenerationConfigurationModel configuration, InterceptorContext ctx) Called in themodelService.removeAll()method.voidsetCouponDao(CouponDao couponDao) voidsetL10NService(L10NService l10NService)
-
Constructor Details
-
CodeGenerationConfigurationUsageValidateInterceptor
public CodeGenerationConfigurationUsageValidateInterceptor()
-
-
Method Details
-
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
-
setCouponDao
-
getL10NService
-
setL10NService
-