Class DefaultOrderEntryGroupingService
java.lang.Object
de.hybris.platform.warehousing.sourcing.context.grouping.impl.DefaultOrderEntryGroupingService
- All Implemented Interfaces:
OrderEntryGroupingService
Default order entry grouping implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<AbstractOrderEntryModel>Excludes the orderEntries from being grouped, if the there is nothing to be sourced in those orderEntriessplitGroupByMatcher(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.
-
Constructor Details
-
DefaultOrderEntryGroupingService
public DefaultOrderEntryGroupingService()
-
-
Method Details
-
splitOrderByMatchers
public Set<OrderEntryGroup> splitOrderByMatchers(AbstractOrderModel order, Collection<OrderEntryMatcher> matchers) Description copied from interface:OrderEntryGroupingServiceSplit an order into a groups of order entries based on a collection of matchers.- Specified by:
splitOrderByMatchersin interfaceOrderEntryGroupingService- Parameters:
order- - the abstract order entry modelmatchers- - the order entry matchers- Returns:
- a set of order entry groups; never null
-
splitGroupsByMatcher
public Set<OrderEntryGroup> splitGroupsByMatcher(Set<OrderEntryGroup> groups, OrderEntryMatcher matcher) Description copied from interface:OrderEntryGroupingServiceSplit an existing collection of order entry groups into smaller groups using a single matcher.- Specified by:
splitGroupsByMatcherin interfaceOrderEntryGroupingService- Parameters:
groups- - the collection of order entry groupsmatcher- - the order entry matcher- Returns:
- a set of order entry groups; never null
-
splitGroupByMatcher
Description copied from interface:OrderEntryGroupingServiceSplit a single order entry group into multiple groups using a single matcher.- Specified by:
splitGroupByMatcherin interfaceOrderEntryGroupingService- Parameters:
group- - the order entry groupmatcher- - the order entry matcher- Returns:
- a set of order entry groups; never null
-
excludeCompletedEntries
Excludes the orderEntries from being grouped, if the there is nothing to be sourced in those orderEntries- Parameters:
order- the order containing the orderEntries to be excluded- Returns:
- list of orderEntries which needs to be grouped for sourcing
-