Class AbstractCouponValidateInterceptor
- java.lang.Object
-
- de.hybris.platform.couponservices.interceptor.AbstractCouponValidateInterceptor
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<AbstractCouponModel>
public class AbstractCouponValidateInterceptor extends java.lang.Object implements ValidateInterceptor<AbstractCouponModel>
The general coupon validation interceptor
-
-
Constructor Summary
Constructors Constructor Description AbstractCouponValidateInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonValidate(AbstractCouponModel coupon, InterceptorContext ctx)Called in themodelService.saveAll()method.
-
-
-
Method Detail
-
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.
-
-