Class OrgUnitModelValidateInterceptor
java.lang.Object
de.hybris.platform.commerceservices.organization.interceptor.OrgUnitModelValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
This interceptor validates:
- 1. Restrain orgUnit from being in more than one orgUnit group (eg 1 parent).
- 2. Do not allow to activate units whose parents have be disabled.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected L10NServiceprotected ModelServiceprotected OrgUnitServiceprotected UserServicevoidonValidate(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetL10NService(L10NService l10NService) voidsetModelService(ModelService modelService) voidsetOrgUnitService(OrgUnitService orgUnitService) voidsetUserService(UserService userService)
-
Constructor Details
-
OrgUnitModelValidateInterceptor
public OrgUnitModelValidateInterceptor()
-
-
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.
-
getOrgUnitService
-
setOrgUnitService
-
getModelService
-
setModelService
-
setUserService
-
getUserService
-
setL10NService
-
getL10NService
-