Class DefaultVirtualEntryGroupStrategy
- java.lang.Object
-
- de.hybris.platform.commercefacades.order.impl.DefaultVirtualEntryGroupStrategy
-
- All Implemented Interfaces:
VirtualEntryGroupStrategy
public class DefaultVirtualEntryGroupStrategy extends java.lang.Object implements VirtualEntryGroupStrategy
Default implementation ofVirtualEntryGroupStrategy. Creates separate root entry group for each standalone entry.
-
-
Constructor Summary
Constructors Constructor Description DefaultVirtualEntryGroupStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateGroup(java.util.List<EntryGroupData> rootGroups, OrderEntryData standaloneEntry)Assigns the standalone entry to an entry group.protected EntryGroupDatacreateVirtualGroup(OrderEntryData standaloneEntry, int nextGroupNumber)protected CommerceEntryGroupUtilsgetEntryGroupUtils()voidsetEntryGroupUtils(CommerceEntryGroupUtils entryGroupUtils)
-
-
-
Method Detail
-
createGroup
public void createGroup(@Nonnull java.util.List<EntryGroupData> rootGroups, @Nonnull OrderEntryData standaloneEntry)Description copied from interface:VirtualEntryGroupStrategyAssigns the standalone entry to an entry group. The groups can be any ofrootGroups, their children or a new one. In the last case the implementation should attach the new group to the appropriate parent amongrootGroups.- Specified by:
createGroupin interfaceVirtualEntryGroupStrategy- Parameters:
rootGroups- entry group structure. All grouped entries are already in.standaloneEntry- a standalone entry
-
createVirtualGroup
protected EntryGroupData createVirtualGroup(@Nonnull OrderEntryData standaloneEntry, int nextGroupNumber)
-
getEntryGroupUtils
protected CommerceEntryGroupUtils getEntryGroupUtils()
-
setEntryGroupUtils
public void setEntryGroupUtils(CommerceEntryGroupUtils entryGroupUtils)
-
-