Class B2BCustomerModelValidateInterceptor
java.lang.Object
de.hybris.platform.b2bcommercefacades.interceptor.B2BCustomerModelValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
This interceptor ensures that all new B2B Customers are associated with a B2BUnit
B2BCustomerModel,
B2BUnitModel-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetB2bUnitService(B2BUnitService<B2BUnitModel, B2BCustomerModel> b2bUnitService) voidsetL10NService(L10NService l10NService)
-
Constructor Details
-
B2BCustomerModelValidateInterceptor
public B2BCustomerModelValidateInterceptor()
-
-
Method Details
-
onValidate
Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor- Parameters:
model- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
getB2bUnitService
-
setB2bUnitService
-
getL10NService
-
setL10NService
-