Class DefaultOrderEntryGroupingService
- java.lang.Object
-
- de.hybris.platform.warehousing.sourcing.context.grouping.impl.DefaultOrderEntryGroupingService
-
- All Implemented Interfaces:
OrderEntryGroupingService
public class DefaultOrderEntryGroupingService extends java.lang.Object implements OrderEntryGroupingService
Default order entry grouping implementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultOrderEntryGroupingService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<AbstractOrderEntryModel>excludeCompletedEntries(AbstractOrderModel order)Excludes the orderEntries from being grouped, if the there is nothing to be sourced in those orderEntriesjava.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
public java.util.Set<OrderEntryGroup> splitOrderByMatchers(AbstractOrderModel order, java.util.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 java.util.Set<OrderEntryGroup> splitGroupsByMatcher(java.util.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
public java.util.Set<OrderEntryGroup> splitGroupByMatcher(OrderEntryGroup group, OrderEntryMatcher matcher)
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
protected java.util.List<AbstractOrderEntryModel> excludeCompletedEntries(AbstractOrderModel order)
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
-
-