Interface OrderEntryGroupingService
- All Known Implementing Classes:
DefaultOrderEntryGroupingService
public interface OrderEntryGroupingService
Allows to split orders and groups of order entries into smaller groups of order entries using a series of matchers.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionsplitGroupByMatcher(OrderEntryGroup group, OrderEntryMatcher matcher) Split a single order entry group into multiple groups using a single matcher.splitGroupsByMatcher(Set<OrderEntryGroup> groups, OrderEntryMatcher matcher) Split an existing collection of order entry groups into smaller groups using a single matcher.splitOrderByMatchers(AbstractOrderModel order, Collection<OrderEntryMatcher> matchers) Split an order into a groups of order entries based on a collection of matchers.
-
Method Details
-
splitOrderByMatchers
Set<OrderEntryGroup> splitOrderByMatchers(AbstractOrderModel order, Collection<OrderEntryMatcher> matchers) Split an order into a groups of order entries based on a collection of matchers.- Parameters:
order- - the abstract order entry modelmatchers- - the order entry matchers- Returns:
- a set of order entry groups; never null
-
splitGroupsByMatcher
Split an existing collection of order entry groups into smaller groups using a single matcher.- Parameters:
groups- - the collection of order entry groupsmatcher- - the order entry matcher- Returns:
- a set of order entry groups; never null
-
splitGroupByMatcher
Split a single order entry group into multiple groups using a single matcher.- Parameters:
group- - the order entry groupmatcher- - the order entry matcher- Returns:
- a set of order entry groups; never null
-