Interface B2BUserFacade

    • Method Detail

      • getParentUnitForCustomer

        B2BUnitData getParentUnitForCustomer​(java.lang.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
      • 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 customer
        updatedPassword -
      • removeUserRole

        B2BSelectionData removeUserRole​(java.lang.String userUid,
                                        java.lang.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​(java.lang.String userUid,
                                     java.lang.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,
                                                                          java.lang.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​(java.lang.String customerUid,
                                                   java.lang.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​(java.lang.String customerUid,
                                                  java.lang.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​(java.lang.String customerUid,
                                                          java.lang.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​(java.lang.String customerUid)
        Returns a b2b customer for the given uid.
        Parameters:
        customerUid - the uid of the customer
        Returns:
        a customer data object