Interface B2BUserFacade
-
- All Known Subinterfaces:
B2BCommerceUserFacade
- All Known Implementing Classes:
DefaultB2BCommerceUserFacade,DefaultB2BUserFacade
public interface B2BUserFacadeA facade for user management within b2b commerce.- Since:
- 6.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description B2BSelectionDataaddB2BUserGroupToCustomer(java.lang.String customerUid, java.lang.String userGroupUid)Add b2b user group to a customer.B2BSelectionDataaddUserRole(java.lang.String userUid, java.lang.String roleUid)Adds a role to a user.B2BSelectionDatadeselectB2BUserGroupFromCustomer(java.lang.String customerUid, java.lang.String userGroupUid)Deselects b2b user group from a customer.voiddisableCustomer(java.lang.String customerUid)Disable a customer.voidenableCustomer(java.lang.String customerUid)Enable a customer.CustomerDatagetCustomerForUid(java.lang.String customerUid)Returns a b2b customer for the given uid.SearchPageData<B2BUserGroupData>getPagedB2BUserGroupsForCustomer(PageableData pageableData, java.lang.String customerUid)Get Paginated list of B2B User groups the customer belongs to.SearchPageData<CustomerData>getPagedCustomers(PageableData pageableData)Get Paginated list of customers.B2BUnitDatagetParentUnitForCustomer(java.lang.String customerUid)ReturnsB2BUnitDatafor given customer uid.voidremoveB2BUserGroupFromCustomerGroups(java.lang.String customerUid, java.lang.String userGroupUid)Remove b2b user group from a customer.B2BSelectionDataremoveUserRole(java.lang.String userUid, java.lang.String roleUid)Remove the role from a user.voidresetCustomerPassword(java.lang.String customerUid, java.lang.String updatedPassword)Reset the customer password.voidupdateCustomer(CustomerData customer)Update customer modelB2BCustomerModel.
-
-
-
Method Detail
-
getParentUnitForCustomer
B2BUnitData getParentUnitForCustomer(java.lang.String customerUid)
ReturnsB2BUnitDatafor given customer uid.- Parameters:
customerUid- the uid of the customer- Returns:
- found
B2BUnitData
-
getPagedCustomers
SearchPageData<CustomerData> getPagedCustomers(PageableData pageableData)
Get Paginated list of customers.- Parameters:
pageableData- Pagination Data- Returns:
- A paginated list of customers
-
updateCustomer
void updateCustomer(CustomerData customer)
Update customer modelB2BCustomerModel.- Parameters:
customer- The Customer DataCustomerData
-
enableCustomer
void enableCustomer(java.lang.String customerUid)
Enable a customer.- Parameters:
customerUid- the uid of the customer
-
disableCustomer
void disableCustomer(java.lang.String customerUid)
Disable a customer.- Parameters:
customerUid- the uid of the customer
-
resetCustomerPassword
void resetCustomerPassword(java.lang.String customerUid, java.lang.String updatedPassword)Reset the customer password.- Parameters:
customerUid- the uid of the customerupdatedPassword-
-
removeUserRole
B2BSelectionData removeUserRole(java.lang.String userUid, java.lang.String roleUid)
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
B2BSelectionData addUserRole(java.lang.String userUid, java.lang.String roleUid)
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, java.lang.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
B2BSelectionData addB2BUserGroupToCustomer(java.lang.String customerUid, java.lang.String userGroupUid)
Add b2b user group to a customer.- Parameters:
customerUid- the uid of the customeruserGroupUid- the uid od the user group- Returns:
- Returns
B2BSelectionData
-
removeB2BUserGroupFromCustomerGroups
void removeB2BUserGroupFromCustomerGroups(java.lang.String customerUid, java.lang.String userGroupUid)Remove b2b user group from a customer.- Parameters:
customerUid- the uid of the customeruserGroupUid- the uid od the user group
-
deselectB2BUserGroupFromCustomer
B2BSelectionData deselectB2BUserGroupFromCustomer(java.lang.String customerUid, java.lang.String userGroupUid)
Deselects b2b user group from a customer.- Parameters:
customerUid- the uid of the customeruserGroupUid- the uid od the user group- Returns:
- Returns
B2BSelectionData
-
getCustomerForUid
CustomerData getCustomerForUid(java.lang.String customerUid)
Returns a b2b customer for the given uid.- Parameters:
customerUid- the uid of the customer- Returns:
- a customer data object
-
-