Interface B2BUserFacade
- All Known Subinterfaces:
B2BCommerceUserFacade
- All Known Implementing Classes:
DefaultB2BCommerceUserFacade,DefaultB2BUserFacade
public interface B2BUserFacade
A facade for user management within b2b commerce.
- Since:
- 6.0
-
Method Summary
Modifier and TypeMethodDescriptionaddB2BUserGroupToCustomer(String customerUid, String userGroupUid) Add b2b user group to a customer.addUserRole(String userUid, String roleUid) Adds a role to a user.deselectB2BUserGroupFromCustomer(String customerUid, String userGroupUid) Deselects b2b user group from a customer.voiddisableCustomer(String customerUid) Disable a customer.voidenableCustomer(String customerUid) Enable a customer.getCustomerForUid(String customerUid) Returns a b2b customer for the given uid.getPagedB2BUserGroupsForCustomer(PageableData pageableData, String customerUid) Get Paginated list of B2B User groups the customer belongs to.getPagedCustomers(PageableData pageableData) Get Paginated list of customers.getParentUnitForCustomer(String customerUid) ReturnsB2BUnitDatafor given customer uid.voidremoveB2BUserGroupFromCustomerGroups(String customerUid, String userGroupUid) Remove b2b user group from a customer.removeUserRole(String userUid, String roleUid) Remove the role from a user.voidresetCustomerPassword(String customerUid, String updatedPassword) Reset the customer password.voidupdateCustomer(CustomerData customer) Update customer modelB2BCustomerModel.
-
Method Details
-
getParentUnitForCustomer
ReturnsB2BUnitDatafor given customer uid.- Parameters:
customerUid- the uid of the customer- Returns:
- found
B2BUnitData
-
getPagedCustomers
Get Paginated list of customers.- Parameters:
pageableData- Pagination Data- Returns:
- A paginated list of customers
-
updateCustomer
Update customer modelB2BCustomerModel.- Parameters:
customer- The Customer DataCustomerData
-
enableCustomer
Enable a customer.- Parameters:
customerUid- the uid of the customer
-
disableCustomer
Disable a customer.- Parameters:
customerUid- the uid of the customer
-
resetCustomerPassword
Reset the customer password.- Parameters:
customerUid- the uid of the customerupdatedPassword-
-
removeUserRole
Remove the role from a user.- Parameters:
userUid- the uid of the userroleUid- the uid of the role to be removed- Returns:
- Returns the
B2BSelectionData
-
addUserRole
Adds a role to a user.- Parameters:
userUid- the uid of the userroleUid- the uid of the role to be removed- Returns:
- Returns the
B2BSelectionData
-
getPagedB2BUserGroupsForCustomer
SearchPageData<B2BUserGroupData> getPagedB2BUserGroupsForCustomer(PageableData pageableData, String customerUid) Get Paginated list of B2B User groups the customer belongs to.- Parameters:
pageableData- Pageable DatacustomerUid- the uid of the customer- Returns:
- Returns the
SearchPageData
-
addB2BUserGroupToCustomer
Add b2b user group to a customer.- Parameters:
customerUid- the uid of the customeruserGroupUid- the uid od the user group- Returns:
- Returns
B2BSelectionData
-
removeB2BUserGroupFromCustomerGroups
Remove b2b user group from a customer.- Parameters:
customerUid- the uid of the customeruserGroupUid- the uid od the user group
-
deselectB2BUserGroupFromCustomer
Deselects b2b user group from a customer.- Parameters:
customerUid- the uid of the customeruserGroupUid- the uid od the user group- Returns:
- Returns
B2BSelectionData
-
getCustomerForUid
Returns a b2b customer for the given uid.- Parameters:
customerUid- the uid of the customer- Returns:
- a customer data object
-