Package de.hybris.platform.b2b.dao
Interface B2BUnitOrderDao
- All Known Implementing Classes:
DefaultB2BUnitOrderDao
public interface B2BUnitOrderDao
A dao for b2b unit-level orders.
- Spring Bean ID:
- B2BUnitOrderDao
-
Method Summary
Modifier and TypeMethodDescriptionfindBranchOrderByCode(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.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.
-
Method Details
-
findBranchOrderByCode
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 orderbranchUnits- list of units+subunits in the current session's active catalog versionsstore- 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 versionsstore- the current storefilters- a filter terms limiting the result according to the given valuesstatus- a list of order statuses to include in the result, if null or empty then all statuses are includedpageableData- the pagination data- Returns:
- The list of orders in the units associated with the store
-