Class DefaultB2BCommerceUnitFacade

    • Constructor Detail

      • DefaultB2BCommerceUnitFacade

        public DefaultB2BCommerceUnitFacade()
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • disableUnit

        public void disableUnit​(java.lang.String uid)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: B2BUnitFacade
        Disables a unit based on a uid of a B2BUnitModel
        Specified by:
        disableUnit in interface B2BUnitFacade
      • getParentUnitNode

        public B2BUnitNodeData getParentUnitNode()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: B2BUnitFacade
        Gets a business unit as a B2BUnitNodeData assigned to the current session user with all the children retrieved via B2BUnitNodeData.getChildren() which only has enough data to construct a tree view.
        Specified by:
        getParentUnitNode in interface B2BUnitFacade
        Returns:
        A business unit assigned to the session customer
      • getAllowedParentUnits

        public java.util.List<B2BUnitNodeData> getAllowedParentUnits​(java.lang.String uid)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: B2BUnitFacade
        A list of parent units for which the unit with uid can be assigned as a sibling
        Specified by:
        getAllowedParentUnits in interface B2BUnitFacade
        Parameters:
        uid - An id of a B2BUnitModel
        Returns:
        A list of parent units that a given unit can be a child of
      • getAllActiveUnitsOfOrganization

        public java.util.List<java.lang.String> getAllActiveUnitsOfOrganization()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: B2BUnitFacade
        Get All units of organization which are enabled.
        Specified by:
        getAllActiveUnitsOfOrganization in interface B2BUnitFacade
        Returns:
        A collection of B2BUnit uids.
      • getPagedUserDataForUnit

        public SearchPageData<CustomerData> getPagedUserDataForUnit​(PageableData pageableData,
                                                                    java.lang.String unit)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: B2BUnitFacade
        Get a list of customers directly associated to the unit plus all the customers who are members of given list of usergroups with the visible branch for the current session user. A list of PrincipalModel.getUid()
        Specified by:
        getPagedUserDataForUnit in interface B2BUnitFacade
        Parameters:
        pageableData - Pagination data
        unit - A unit UID
        Returns:
        A paginated list of CustomerData
      • addAddressToUnit

        public void addAddressToUnit​(AddressData addressData,
                                     java.lang.String unitUid)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: B2BUnitFacade
        Associates an address to a business unit
        Specified by:
        addAddressToUnit in interface B2BUnitFacade
        Parameters:
        addressData - Address data object
        unitUid - A unit uid
      • removeAddressFromUnit

        public void removeAddressFromUnit​(java.lang.String unitUid,
                                          java.lang.String addressId)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: B2BUnitFacade
        Remove an address from a unit
        Specified by:
        removeAddressFromUnit in interface B2BUnitFacade
      • editAddressOfUnit

        public void editAddressOfUnit​(AddressData updatedAddress,
                                      java.lang.String uid)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: B2BUnitFacade
        Edit address of a unit
        Specified by:
        editAddressOfUnit in interface B2BUnitFacade
        Parameters:
        updatedAddress - Address data
        uid - A unit UID
      • enableUnit

        public void enableUnit​(java.lang.String unitUid)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: B2BUnitFacade
        Enable a Business Unit that is not active
        Specified by:
        enableUnit in interface B2BUnitFacade
        Parameters:
        unitUid - A unitUid uid
      • updateOrCreateBusinessUnit

        public void updateOrCreateBusinessUnit​(java.lang.String originalUid,
                                               B2BUnitData unit)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: B2BUnitFacade
        Updates B2BUnitModel based on unit data if param originalUid is null the new unit is created
        Specified by:
        updateOrCreateBusinessUnit in interface B2BUnitFacade
        Parameters:
        originalUid - the uid of B2BUnitModel to update.
        unit - A unit data object