U - the customerC - the b2b unitpublic interface B2BCustomerService<U,C>
B2BCustomerModel| Modifier and Type | Method and Description |
|---|---|
void |
addMember(PrincipalModel member,
PrincipalGroupModel group) |
List<B2BUserGroupModel> |
getAllB2BUserGroups()
Gets all b2b user groups
|
List<U> |
getAllUsers()
Gets all users
|
U |
getCurrentB2BCustomer()
Gets the current b2b customer.
|
U |
getUserForUID(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 |
boolean |
principalExists(String uid)
Deprecated.
|
void |
setParentB2BUnit(U member,
C company)
|
void addMember(PrincipalModel member, PrincipalGroupModel group)
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 exampleU getUserForUID(String userId)
UserService.getUserForUID(String, Class) if the user was
not found return null rather than throwing up
de.hybris.platform.servicelayer.exceptions.UnknownIdentifierExceptionuserId - The unique identifier of the user@Deprecated void setParentB2BUnit(U member, C company)
addMember(de.hybris.platform.core.model.security.PrincipalModel, de.hybris.platform.core.model.security.PrincipalGroupModel)B2BUnitService.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.member - the customer who will be assigned to the parent unitcompany - the parent b2b unitU getCurrentB2BCustomer()
@Deprecated boolean principalExists(String uid)
UserService.isUserExisting(String)uid - List<B2BUserGroupModel> getAllB2BUserGroups()
List of B2BUserGroupModelCopyright © 2017 SAP SE. All Rights Reserved.