Class B2BCustomerModelValidateInterceptor
- java.lang.Object
-
- de.hybris.platform.b2b.interceptor.B2BCustomerModelValidateInterceptor
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
public class B2BCustomerModelValidateInterceptor extends java.lang.Object implements ValidateInterceptor
This interceptor ensures that all new B2B Customers are associated with a B2BUnitB2BCustomerModel,B2BUnitModel
-
-
Constructor Summary
Constructors Constructor Description B2BCustomerModelValidateInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description B2BUnitService<B2BUnitModel,B2BCustomerModel>getB2bUnitService()L10NServicegetL10NService()voidonValidate(java.lang.Object model, InterceptorContext ctx)Called in themodelService.saveAll()method.voidsetB2bUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)voidsetL10NService(L10NService l10NService)
-
-
-
Method Detail
-
onValidate
public void onValidate(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionDescription 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
public B2BUnitService<B2BUnitModel,B2BCustomerModel> getB2bUnitService()
-
setB2bUnitService
public void setB2bUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)
-
getL10NService
public L10NService getL10NService()
-
setL10NService
public void setL10NService(L10NService l10NService)
-
-