Interface CompanyB2BCommerceService

    • Method Detail

      • getUnitForUid

        B2BUnitModel getUnitForUid​(java.lang.String unitUid)
        Deprecated.
        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.
        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.
        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.
        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.
        Get all currencies for the current store
        Returns:
        Collection of currencyModels
      • getCurrencyForIsoCode

        <T extends CurrencyModel> T getCurrencyForIsoCode​(java.lang.String isoCode)
        Deprecated.
        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.
        Persists the model delegating to ModelService.save(Object)
        Parameters:
        model - A model to save.
      • getBusinessProcesses

        java.util.Map<java.lang.String,​java.lang.String> getBusinessProcesses()
        Deprecated.
        Gets a map object containing the business processes for the current store
        Returns:
        A Map containing the business processes information