public interface B2BCommerceUserService
| Modifier and Type | Method and Description |
|---|---|
B2BUserGroupModel |
addB2BUserGroupToCustomer(java.lang.String user,
java.lang.String usergroup)
Add Usergroups
B2BCustomerModel object for a given unique id of a customer |
B2BCustomerModel |
addUserRole(java.lang.String user,
java.lang.String role)
Add user role for a given user and return the updated
B2BCustomerModel object |
B2BUserGroupModel |
deselectB2BUserGroupFromCustomer(java.lang.String user,
java.lang.String usergroup)
Deselects (removes) usergroup from a customer.
|
void |
disableCustomer(java.lang.String uid)
Disable a customer given its unique id
|
void |
enableCustomer(java.lang.String uid)
Enable customer given its unique id
|
SearchPageData<B2BCustomerModel> |
getPagedCustomers(PageableData pageableData)
Gets list of
SearchPageData for pagination given the required pagination parameters with
PageableData |
SearchPageData<B2BCustomerModel> |
getPagedCustomersByGroupMembership(PageableData pageableData,
java.lang.String... userGroupUids)
Gets list of
SearchPageData for pagination given the required pagination parameters with
PageableData |
SearchPageData<B2BCustomerModel> |
getPagedCustomersBySearchTermAndGroupMembership(PageableData pageableData,
java.lang.String searchTerm,
java.lang.String... userGroupUids)
Gets a pageable list of b2b customers that belong to the supplied groups.
|
<T extends B2BUnitModel> |
getParentUnitForCustomer(java.lang.String uid)
Get parent unit
B2BUnitModel for a given unique id of a customer |
void |
removeB2BUserGroupFromCustomerGroups(java.lang.String user,
java.lang.String usergroup)
Removes usergroup from a customer.
|
B2BCustomerModel |
removeUserRole(java.lang.String user,
java.lang.String role)
Remove user role for a given user and return the updated
B2BCustomerModel object |
SearchPageData<B2BCustomerModel> getPagedCustomers(PageableData pageableData)
SearchPageData for pagination given the required pagination parameters with
PageableDatapageableData - Pagination informationB2BCustomerModel objectsSearchPageData<B2BCustomerModel> getPagedCustomersByGroupMembership(PageableData pageableData, java.lang.String... userGroupUids)
SearchPageData for pagination given the required pagination parameters with
PageableDatapageableData - Pagination informationuserGroupUids - Unique identifiers for B2BUserGroupModelB2BCustomerModel objectsSearchPageData<B2BCustomerModel> getPagedCustomersBySearchTermAndGroupMembership(PageableData pageableData, java.lang.String searchTerm, java.lang.String... userGroupUids)
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 for B2BUserGroupModelB2BCustomerModel objectsB2BCustomerModel removeUserRole(java.lang.String user, java.lang.String role)
B2BCustomerModel objectuser - A unique identifier for B2BCustomerModel representing a userrole - A unique identifier for UserGroupModel representing a user groups to which the user belongsB2BCustomerModel object with user groups removed matching the roleB2BCustomerModel addUserRole(java.lang.String user, java.lang.String role)
B2BCustomerModel objectuser - A unique identifier for B2BCustomerModel representing a userrole - A unique identifier for UserGroupModel representing a user groups to which the user belongsB2BCustomerModel object with user groups added matching the roleB2BUserGroupModel addB2BUserGroupToCustomer(java.lang.String user, java.lang.String usergroup)
B2BCustomerModel object for a given unique id of a customeruser - A unique identifier for B2BCustomerModel representing a customerusergroup - A unique identifier for B2BUserGroupModel representing a user groupB2BUserGroupModel object with user group added for the given unique identifier for
B2BUserGroupModelB2BUserGroupModel deselectB2BUserGroupFromCustomer(java.lang.String user, java.lang.String usergroup)
user - A unique identifier for B2BCustomerModel representing a customerusergroup - A unique identifier for B2BUserGroupModel representing a user groupB2BUserGroupModel object with user group.void removeB2BUserGroupFromCustomerGroups(java.lang.String user,
java.lang.String usergroup)
user - A unique identifier for B2BCustomerModel representing a customerusergroup - A unique identifier for B2BUserGroupModel representing a user group<T extends B2BUnitModel> T getParentUnitForCustomer(java.lang.String uid)
B2BUnitModel for a given unique id of a customeruid - A unique id for @link B2BCustomerModel} object of a customerB2BUnitModel object for a given unique id of customervoid disableCustomer(java.lang.String uid)
uid - A unique id for @link B2BCustomerModel} representing a uservoid enableCustomer(java.lang.String uid)
uid - A unique id for @link B2BCustomerModel} representing a userCopyright © 2018 SAP SE. All Rights Reserved.