Interface CompanyB2BCommerceService

    • Method Detail

      • getUnitForUid

        B2BUnitModel getUnitForUid​(java.lang.String unitUid)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Get a B2BUnitModel for a unique identifier unitUid
        Parameters:
        unitUid - A unique identifier for a B2BUnitModel
        Returns:
        A unit if exist or null if not found
      • getCurrentUser

        <T extends B2BCustomerModel> T getCurrentUser()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Gets a current session user as a B2BCustomerModel
        Returns:
        A customer in the session.
      • getPagedUsersForUserGroups

        SearchPageData<B2BCustomerModel> getPagedUsersForUserGroups​(PageableData pageableData,
                                                                    java.lang.String... userGroupUID)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Searches for users
        Parameters:
        pageableData - to use in narrowing result
        userGroupUID - uids of groups to search against
        Returns:
        users which belong to groups with given uids
      • getMembersOfUnitForUserGroup

        <T extends B2BCustomerModel> java.util.List<T> getMembersOfUnitForUserGroup​(B2BUnitModel unit,
                                                                                    java.lang.String userGroupId)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Get members who are assigned to a unit with a specified user group
        Parameters:
        unit - A business unit
        userGroupId - UserGroup id
        Returns:
        A collection of users assigned to the unit who are members of the specified group
      • getAllCurrencies

        java.util.Collection<? extends CurrencyModel> getAllCurrencies()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Get all currencies for the current store
        Returns:
        Collection of currencyModels
      • getCurrencyForIsoCode

        <T extends CurrencyModel> T getCurrencyForIsoCode​(java.lang.String isoCode)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Get the currencyModel for the given ISO code
        Parameters:
        isoCode - ISO Code of the CurrencyModel
        Returns:
        A CurrencyModel object that matches the given ISO code
      • saveModel

        <T extends ItemModel> void saveModel​(T model)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Persists the model delegating to ModelService.save(Object)
        Parameters:
        model - A model to save.
      • getCustomerForUid

        <T extends B2BCustomerModel> T getCustomerForUid​(java.lang.String uid)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Gets a customer for the given uid
        Parameters:
        uid - A unique identifier for B2BCustomerModel
        Returns:
        A B2BCustomerModel for uid
      • getParentUnit

        <T extends B2BUnitModel> T getParentUnit​(B2BUnitModel unit)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Gets the parent unit given a unit object.
        Parameters:
        unit - A unique identifier for B2BUnitModel
        Returns:
        A B2BUnitModel for given unit
      • getB2BUserGroupForUid

        B2BUserGroupModel getB2BUserGroupForUid​(java.lang.String uid)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Gets a b2b user group given its uid
        Parameters:
        uid - A unique identifier for B2BUserGroupModel
        Returns:
        A B2BUserGroupModel for given unit
      • getBusinessProcesses

        java.util.Map<java.lang.String,​java.lang.String> getBusinessProcesses()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Gets a map object containing the business processes for the current store
        Returns:
        A Map containing the business processes information