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 Details

    • getParentUnitForCustomer

      B2BUnitData getParentUnitForCustomer(String customerUid)
      Returns B2BUnitData for 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 model B2BCustomerModel.
      Parameters:
      customer - The Customer Data CustomerData
    • enableCustomer

      void enableCustomer(String customerUid)
      Enable a customer.
      Parameters:
      customerUid - the uid of the customer
    • disableCustomer

      void disableCustomer(String customerUid)
      Disable a customer.
      Parameters:
      customerUid - the uid of the customer
    • resetCustomerPassword

      void resetCustomerPassword(String customerUid, String updatedPassword)
      Reset the customer password.
      Parameters:
      customerUid - the uid of the customer
      updatedPassword -
    • removeUserRole

      B2BSelectionData removeUserRole(String userUid, String roleUid)
      Remove the role from a user.
      Parameters:
      userUid - the uid of the user
      roleUid - the uid of the role to be removed
      Returns:
      Returns the B2BSelectionData
    • addUserRole

      B2BSelectionData addUserRole(String userUid, String roleUid)
      Adds a role to a user.
      Parameters:
      userUid - the uid of the user
      roleUid - 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 Data
      customerUid - the uid of the customer
      Returns:
      Returns the SearchPageData
    • addB2BUserGroupToCustomer

      B2BSelectionData addB2BUserGroupToCustomer(String customerUid, String userGroupUid)
      Add b2b user group to a customer.
      Parameters:
      customerUid - the uid of the customer
      userGroupUid - the uid od the user group
      Returns:
      Returns B2BSelectionData
    • removeB2BUserGroupFromCustomerGroups

      void removeB2BUserGroupFromCustomerGroups(String customerUid, String userGroupUid)
      Remove b2b user group from a customer.
      Parameters:
      customerUid - the uid of the customer
      userGroupUid - the uid od the user group
    • deselectB2BUserGroupFromCustomer

      B2BSelectionData deselectB2BUserGroupFromCustomer(String customerUid, String userGroupUid)
      Deselects b2b user group from a customer.
      Parameters:
      customerUid - the uid of the customer
      userGroupUid - the uid od the user group
      Returns:
      Returns B2BSelectionData
    • getCustomerForUid

      CustomerData getCustomerForUid(String customerUid)
      Returns a b2b customer for the given uid.
      Parameters:
      customerUid - the uid of the customer
      Returns:
      a customer data object