public class DefaultB2BCustomerService extends java.lang.Object implements B2BCustomerService<B2BCustomerModel,B2BUnitModel>
B2BCustomerService| Constructor and Description |
|---|
DefaultB2BCustomerService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMember(PrincipalModel member,
PrincipalGroupModel group) |
java.util.List<B2BUserGroupModel> |
getAllB2BUserGroups()
Gets all b2b user groups
|
java.util.List<B2BCustomerModel> |
getAllUsers()
Gets all users
|
protected BaseDao |
getBaseDao() |
B2BCustomerModel |
getCurrentB2BCustomer()
Gets the current b2b customer.
|
protected SearchRestrictionService |
getSearchRestrictionService() |
B2BCustomerModel |
getUserForUID(java.lang.String userId)
Delegates to
UserService.getUserForUID(String, Class) if the user was
not found return null rather than throwing up
de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException |
protected UserService |
getUserService() |
boolean |
principalExists(java.lang.String uid)
Deprecated.
Since 4.4.
|
void |
setBaseDao(BaseDao baseDao) |
void |
setParentB2BUnit(B2BCustomerModel member,
B2BUnitModel parentB2BUnit)
Sets the parent b2b unit.
|
void |
setSearchRestrictionService(SearchRestrictionService searchRestrictionService) |
void |
setUserService(UserService userService) |
public void addMember(PrincipalModel member, PrincipalGroupModel group)
addMember in interface B2BCustomerService<B2BCustomerModel,B2BUnitModel>member - A user to be added to a group, like B2BCustomerModel for examplegroup - A user group to which a member is going to be added, like a B2BUnitModel for examplepublic void setParentB2BUnit(B2BCustomerModel member, B2BUnitModel parentB2BUnit)
B2BCustomerServiceB2BUnitService.updateBranchInSession(de.hybris.platform.servicelayer.session.Session, de.hybris.platform.core.model.user.UserModel)
after calling this method to make sure the session breach is refreshed.setParentB2BUnit in interface B2BCustomerService<B2BCustomerModel,B2BUnitModel>member - the customer who will be assigned to the parent unitparentB2BUnit - the parent b2b unitpublic B2BCustomerModel getUserForUID(java.lang.String userId)
B2BCustomerServiceUserService.getUserForUID(String, Class) if the user was
not found return null rather than throwing up
de.hybris.platform.servicelayer.exceptions.UnknownIdentifierExceptiongetUserForUID in interface B2BCustomerService<B2BCustomerModel,B2BUnitModel>userId - The unique identifier of the userpublic B2BCustomerModel getCurrentB2BCustomer()
B2BCustomerServicegetCurrentB2BCustomer in interface B2BCustomerService<B2BCustomerModel,B2BUnitModel>public java.util.List<B2BCustomerModel> getAllUsers()
B2BCustomerServicegetAllUsers in interface B2BCustomerService<B2BCustomerModel,B2BUnitModel>List of userspublic java.util.List<B2BUserGroupModel> getAllB2BUserGroups()
B2BCustomerServicegetAllB2BUserGroups in interface B2BCustomerService<B2BCustomerModel,B2BUnitModel>List of B2BUserGroupModel@Deprecated public boolean principalExists(java.lang.String uid)
B2BCustomerServiceprincipalExists in interface B2BCustomerService<B2BCustomerModel,B2BUnitModel>public void setUserService(UserService userService)
protected UserService getUserService()
protected BaseDao getBaseDao()
public void setBaseDao(BaseDao baseDao)
protected SearchRestrictionService getSearchRestrictionService()
public void setSearchRestrictionService(SearchRestrictionService searchRestrictionService)
Copyright © 2018 SAP SE. All Rights Reserved.