Class B2BUnitModelValidateInterceptor
java.lang.Object
de.hybris.platform.b2b.interceptor.B2BUnitModelValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
This interceptor validates that only a member of groups b2badmingroup and admingroup can create a new root.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected B2BUnitService<B2BUnitModel,B2BCustomerModel> protected L10NServiceprotected ModelServiceprotected UserServicevoidonValidate(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetB2bUnitService(B2BUnitService<B2BUnitModel, B2BCustomerModel> b2bUnitService) voidsetL10NService(L10NService l10NService) voidsetModelService(ModelService modelService) voidsetUserService(UserService userService)
-
Constructor Details
-
B2BUnitModelValidateInterceptor
public B2BUnitModelValidateInterceptor()
-
-
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.
-
setB2bUnitService
-
setUserService
-
getModelService
-
setModelService
-
getB2bUnitService
-
getUserService
-
setL10NService
-
getL10NService
-