Class CustomerCouponValidateInterceptor
java.lang.Object
de.hybris.platform.customercouponservices.interceptor.CustomerCouponValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<AbstractCouponModel>
public class CustomerCouponValidateInterceptor
extends Object
implements ValidateInterceptor<AbstractCouponModel>
Checks if the customer coupon is valid when saving it
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(AbstractCouponModel coupon, InterceptorContext ctx) Called in themodelService.saveAll()method.
-
Constructor Details
-
CustomerCouponValidateInterceptor
public CustomerCouponValidateInterceptor()
-
-
Method Details
-
onValidate
public void onValidate(AbstractCouponModel coupon, InterceptorContext ctx) throws InterceptorException Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<AbstractCouponModel>- Parameters:
coupon- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-