Package de.hybris.platform.b2b.company
Interface B2BCommerceUserService
- All Known Subinterfaces:
B2BCommerceUserService
- All Known Implementing Classes:
DefaultB2BCommerceUserService,DefaultB2BCommerceUserService
public interface B2BCommerceUserService
A service for user management within b2b commerce
-
Method Summary
Modifier and TypeMethodDescriptionaddB2BUserGroupToCustomer(String user, String usergroup) Add UsergroupsB2BCustomerModelobject for a given unique id of a customeraddUserRole(String user, String role) Add user role for a given user and return the updatedB2BCustomerModelobjectdeselectB2BUserGroupFromCustomer(String user, String usergroup) Deselects (removes) usergroup from a customer.voiddisableCustomer(String uid) Disable a customer given its unique idvoidenableCustomer(String uid) Enable customer given its unique idgetPagedCustomers(PageableData pageableData) Gets list ofSearchPageDatafor pagination given the required pagination parameters withPageableDatagetPagedCustomersByGroupMembership(PageableData pageableData, String... userGroupUids) Gets list ofSearchPageDatafor pagination given the required pagination parameters withPageableDatagetPagedCustomersBySearchTermAndGroupMembership(PageableData pageableData, String searchTerm, String... userGroupUids) Gets a pageable list of b2b customers that belong to the supplied groups.<T extends B2BUnitModel>
TGet parent unitB2BUnitModelfor a given unique id of a customervoidremoveB2BUserGroupFromCustomerGroups(String user, String usergroup) Removes usergroup from a customer.removeUserRole(String user, String role) Remove user role for a given user and return the updatedB2BCustomerModelobject
-
Method Details
-
getPagedCustomers
Gets list ofSearchPageDatafor pagination given the required pagination parameters withPageableData- Parameters:
pageableData- Pagination information- Returns:
- List of paginated
B2BCustomerModelobjects
-
getPagedCustomersByGroupMembership
SearchPageData<B2BCustomerModel> getPagedCustomersByGroupMembership(PageableData pageableData, String... userGroupUids) Gets list ofSearchPageDatafor pagination given the required pagination parameters withPageableData- Parameters:
pageableData- Pagination informationuserGroupUids- Unique identifiers forB2BUserGroupModel- Returns:
- List of paginated
B2BCustomerModelobjects
-
getPagedCustomersBySearchTermAndGroupMembership
SearchPageData<B2BCustomerModel> getPagedCustomersBySearchTermAndGroupMembership(PageableData pageableData, String searchTerm, String... userGroupUids) Gets a pageable list of b2b customers that belong to the supplied groups. The results are filtered by a search term.- Parameters:
pageableData- Pagination informationsearchTerm- Search string that is used to filter the results using the customer name or his unit name. A match can occur in either the customer name or his unit name for the customer to be returned in the results.userGroupUids- Unique identifiers forB2BUserGroupModel- Returns:
- List of paginated
B2BCustomerModelobjects
-
removeUserRole
Remove user role for a given user and return the updatedB2BCustomerModelobject- Parameters:
user- A unique identifier forB2BCustomerModelrepresenting a userrole- A unique identifier forUserGroupModelrepresenting a user groups to which the user belongs- Returns:
- Updated
B2BCustomerModelobject with user groups removed matching the role
-
addUserRole
Add user role for a given user and return the updatedB2BCustomerModelobject- Parameters:
user- A unique identifier forB2BCustomerModelrepresenting a userrole- A unique identifier forUserGroupModelrepresenting a user groups to which the user belongs- Returns:
- Updated
B2BCustomerModelobject with user groups added matching the role
-
addB2BUserGroupToCustomer
Add UsergroupsB2BCustomerModelobject for a given unique id of a customer- Parameters:
user- A unique identifier forB2BCustomerModelrepresenting a customerusergroup- A unique identifier forB2BUserGroupModelrepresenting a user group- Returns:
- Updated
B2BUserGroupModelobject with user group added for the given unique identifier forB2BUserGroupModel
-
deselectB2BUserGroupFromCustomer
Deselects (removes) usergroup from a customer.- Parameters:
user- A unique identifier forB2BCustomerModelrepresenting a customerusergroup- A unique identifier forB2BUserGroupModelrepresenting a user group- Returns:
- Updated
B2BUserGroupModelobject with user group.
-
removeB2BUserGroupFromCustomerGroups
Removes usergroup from a customer.- Parameters:
user- A unique identifier forB2BCustomerModelrepresenting a customerusergroup- A unique identifier forB2BUserGroupModelrepresenting a user group
-
getParentUnitForCustomer
Get parent unitB2BUnitModelfor a given unique id of a customer- Parameters:
uid- A unique id for @link B2BCustomerModel} object of a customer- Returns:
- Parent unit
B2BUnitModelobject for a given unique id of customer
-
disableCustomer
Disable a customer given its unique id- Parameters:
uid- A unique id for @link B2BCustomerModel} representing a user
-
enableCustomer
Enable customer given its unique id- Parameters:
uid- A unique id for @link B2BCustomerModel} representing a user
-