public class B2BCustomerModelValidateInterceptor extends java.lang.Object implements ValidateInterceptor
B2BCustomerModel,
B2BUnitModel| Constructor and Description |
|---|
B2BCustomerModelValidateInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
B2BUnitService<B2BUnitModel,B2BCustomerModel> |
getB2bUnitService() |
L10NService |
getL10NService() |
UserService |
getUserService() |
protected boolean |
isB2BUnitInGroupList(java.util.Set<PrincipalGroupModel> groups,
B2BUnitModel parentUnit) |
protected void |
makeSureThatB2BUnitIsInGroups(B2BCustomerModel customer,
B2BUnitModel parentUnit)
Method check if B2BUnit is in groups for customer.
|
void |
onValidate(java.lang.Object model,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setB2bUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService) |
void |
setL10NService(L10NService l10NService) |
void |
setUserService(UserService userService) |
public void onValidate(java.lang.Object model,
InterceptorContext ctx)
throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptormodel - the model which values has to be validatedctx - the InterceptorContextInterceptorException - if any values of the model are not valid.protected void makeSureThatB2BUnitIsInGroups(B2BCustomerModel customer, B2BUnitModel parentUnit)
protected boolean isB2BUnitInGroupList(java.util.Set<PrincipalGroupModel> groups, B2BUnitModel parentUnit)
public B2BUnitService<B2BUnitModel,B2BCustomerModel> getB2bUnitService()
public void setB2bUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)
public UserService getUserService()
public void setUserService(UserService userService)
public L10NService getL10NService()
public void setL10NService(L10NService l10NService)
Copyright © 2018 SAP SE. All Rights Reserved.