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 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 model
      matchers - - the order entry matchers
      Returns:
      a set of order entry groups; never null
    • splitGroupsByMatcher

      Set<OrderEntryGroup> splitGroupsByMatcher(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 groups
      matcher - - the order entry matcher
      Returns:
      a set of order entry groups; never null
    • splitGroupByMatcher

      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 group
      matcher - - the order entry matcher
      Returns:
      a set of order entry groups; never null