Class B2BUnitPaymentTypesValidateInterceptor
java.lang.Object
de.hybris.platform.b2b.interceptor.B2BUnitPaymentTypesValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<B2BUnitModel>
public class B2BUnitPaymentTypesValidateInterceptor
extends Object
implements ValidateInterceptor<B2BUnitModel>
This interceptor validates that not all payment types are excluded.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EnumerationServiceprotected L10NServicevoidonValidate(B2BUnitModel model, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetEnumerationService(EnumerationService enumerationService) voidsetL10NService(L10NService l10NService)
-
Constructor Details
-
B2BUnitPaymentTypesValidateInterceptor
public B2BUnitPaymentTypesValidateInterceptor()
-
-
Method Details
-
onValidate
Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<B2BUnitModel>- Parameters:
model- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
setEnumerationService
-
getEnumerationService
-
setL10NService
-
getL10NService
-