Interface B2BUnitOrderDao

All Known Implementing Classes:
DefaultB2BUnitOrderDao

public interface B2BUnitOrderDao
A dao for b2b unit-level orders.
Spring Bean ID:
B2BUnitOrderDao
  • Method Details

    • findBranchOrderByCode

      OrderModel findBranchOrderByCode(String code, Set<B2BUnitModel> branchUnits, BaseStoreModel store)
      Find order for a specific code and a list of unit+subunits in the current session's active catalog versions. For B2B users, information about the unit-subunit hierarchy is stored in a user session.
      Parameters:
      code - the code of the order
      branchUnits - list of units+subunits in the current session's active catalog versions
      store - the current store
      Returns:
      order for code in the units associated with the store
    • findBranchOrdersByStore

      SearchPageData<OrderModel> findBranchOrdersByStore(Set<B2BUnitModel> branchUnits, BaseStoreModel store, SolrSearchQueryData filters, OrderStatus[] status, PageableData pageableData)
      Finds orders for a list of units+subunits in the current session's active catalog versions For B2B users, information about the unit-subunit hierarchy is stored in a user session.
      Parameters:
      branchUnits - list of units+subunits in the current session's active catalog versions
      store - the current store
      filters - a filter terms limiting the result according to the given values
      status - a list of order statuses to include in the result, if null or empty then all statuses are included
      pageableData - the pagination data
      Returns:
      The list of orders in the units associated with the store