U - the customerC - the b2b unitpublic interface B2BCustomerService<U,C>
B2BCustomerModel| 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<U> |
getAllUsers()
Gets all users
|
U |
getCurrentB2BCustomer()
Gets the current b2b customer.
|
U |
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 |
boolean |
principalExists(java.lang.String uid)
Deprecated.
Since 4.4. Use
UserService.isUserExisting(String) |
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(java.lang.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(java.lang.String uid)
UserService.isUserExisting(String)uid - java.util.List<U> getAllUsers()
List of usersjava.util.List<B2BUserGroupModel> getAllB2BUserGroups()
List of B2BUserGroupModelCopyright © 2018 SAP SE. All Rights Reserved.