public class B2BCustomerInitDefaultsInterceptor extends java.lang.Object implements InitDefaultsInterceptor
UserGroupModel type group to the B2bCustomerGroup.| Constructor and Description |
|---|
B2BCustomerInitDefaultsInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
ModelService |
getModelService() |
protected UserGroupModel |
getOrCreateGroup(java.lang.String b2bcustomergroup) |
UserService |
getUserService() |
void |
onInitDefaults(java.lang.Object model,
InterceptorContext ctx)
Called by
ModelService.initDefaults(Object) after instantiate a new model. |
void |
setModelService(ModelService modelService) |
void |
setUserService(UserService userService) |
public void onInitDefaults(java.lang.Object model,
InterceptorContext ctx)
throws InterceptorException
InitDefaultsInterceptorModelService.initDefaults(Object) after instantiate a new model.onInitDefaults in interface InitDefaultsInterceptormodel - the model which values should be set to the default valuesctx - the InterceptorContextInterceptorException - if the loading of the default value reports an error.protected UserGroupModel getOrCreateGroup(java.lang.String b2bcustomergroup)
public void setUserService(UserService userService)
public void setModelService(ModelService modelService)
public UserService getUserService()
public ModelService getModelService()
Copyright © 2018 SAP SE. All Rights Reserved.