Interface OrderEntryGroupingService
-
- All Known Implementing Classes:
DefaultOrderEntryGroupingService
public interface OrderEntryGroupingServiceAllows to split orders and groups of order entries into smaller groups of order entries using a series of matchers.- See Also:
OrderEntryGroup,OrderEntryMatcher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<OrderEntryGroup>splitGroupByMatcher(OrderEntryGroup group, OrderEntryMatcher matcher)Split a single order entry group into multiple groups using a single matcher.java.util.Set<OrderEntryGroup>splitGroupsByMatcher(java.util.Set<OrderEntryGroup> groups, OrderEntryMatcher matcher)Split an existing collection of order entry groups into smaller groups using a single matcher.java.util.Set<OrderEntryGroup>splitOrderByMatchers(AbstractOrderModel order, java.util.Collection<OrderEntryMatcher> matchers)Split an order into a groups of order entries based on a collection of matchers.
-
-
-
Method Detail
-
splitOrderByMatchers
java.util.Set<OrderEntryGroup> splitOrderByMatchers(AbstractOrderModel order, java.util.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
java.util.Set<OrderEntryGroup> splitGroupsByMatcher(java.util.Set<OrderEntryGroup> groups, OrderEntryMatcher matcher)
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
java.util.Set<OrderEntryGroup> splitGroupByMatcher(OrderEntryGroup group, OrderEntryMatcher matcher)
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
-
-