Interface B2BUserGroupFacade
- All Known Subinterfaces:
B2BCommerceB2BUserGroupFacade
- All Known Implementing Classes:
DefaultB2BCommerceB2BUserGroupFacade,DefaultB2BUserGroupFacade
public interface B2BUserGroupFacade
A facade for handling user groups within b2b Commerce.
- Since:
- 6.0
-
Method Summary
Modifier and TypeMethodDescriptionaddMemberToUserGroup(String userGroupUid, String userUid) Add the user with the given uid as a member of the user group.voiddisableUserGroup(String userGroupUid) Disabled a user group by removing all members from it.getB2BUserGroup(String userGroupUid) Get the User Group Data with the uidgetPagedB2BUserGroups(PageableData pageableData) Get a paginated lists of B2B user groups.getPagedCustomersForUserGroup(PageableData pageableData, String userGroupUid) Get paginated list of customers who are members of the given B2B user group.getPagedUserData(PageableData pageableData) Get a paginated list of B2B users.getUserGroupDataForUid(String userGroupUid) Get the user group data for the given uid.A list of user group codes (roles) a b2b customer can be assigned to.removeMemberFromUserGroup(String userGroupUid, String userUid) Remove the member with the given uid from the user group.voidremoveUserGroup(String userGroupUid) Remove the user group with the given uid.voidupdateUserGroup(String userGroupUid, B2BUserGroupData userGroupData) Updates B2B user group based on passed in data object.
-
Method Details
-
getPagedCustomersForUserGroup
SearchPageData<CustomerData> getPagedCustomersForUserGroup(PageableData pageableData, String userGroupUid) Get paginated list of customers who are members of the given B2B user group.- Parameters:
pageableData- pagination information for the requestuserGroupUid- the uid of the user group- Returns:
- a paginated list of
CustomerData
-
updateUserGroup
Updates B2B user group based on passed in data object. If no user group exists for the given uid a new user group is created.- Parameters:
userGroupUid- the uid of the user group to be updateduserGroupData-B2BUserGroupDatacontaining the update information
-
disableUserGroup
Disabled a user group by removing all members from it.- Parameters:
userGroupUid- the uid of the user group
-
removeUserGroup
Remove the user group with the given uid.- Parameters:
userGroupUid- the uid of the user group
-
getPagedUserData
Get a paginated list of B2B users.- Parameters:
pageableData- pagination information for the request- Returns:
- a paginated list of
CustomerData
-
getPagedB2BUserGroups
Get a paginated lists of B2B user groups.- Parameters:
pageableData- pagination information for the request- Returns:
- a paginated list of
B2BUserGroupData
-
getB2BUserGroup
Get the User Group Data with the uid- Parameters:
userGroupUid- the uid of the user group- Returns:
B2BUserGroupData
-
addMemberToUserGroup
Add the user with the given uid as a member of the user group.- Parameters:
userGroupUid- the uid of the user groupuserUid- the uid of the user- Returns:
CustomerData
-
removeMemberFromUserGroup
Remove the member with the given uid from the user group.- Parameters:
userGroupUid- the uid of the user groupuserUid- the uid of the member- Returns:
CustomerData
-
getUserGroupDataForUid
Get the user group data for the given uid.- Parameters:
userGroupUid- the uid of the user group- Returns:
UserGroupData
-
getUserGroups
A list of user group codes (roles) a b2b customer can be assigned to.- Returns:
- a list of
PrincipalModel.UIDa b2b customer can be assigned to
-