Class DefaultVirtualEntryGroupStrategy
java.lang.Object
de.hybris.platform.commercefacades.order.impl.DefaultVirtualEntryGroupStrategy
- All Implemented Interfaces:
VirtualEntryGroupStrategy
Default implementation of
VirtualEntryGroupStrategy.
Creates separate root entry group for each standalone entry.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateGroup(List<EntryGroupData> rootGroups, OrderEntryData standaloneEntry) Assigns the standalone entry to an entry group.protected EntryGroupDatacreateVirtualGroup(OrderEntryData standaloneEntry, int nextGroupNumber) protected CommerceEntryGroupUtilsvoidsetEntryGroupUtils(CommerceEntryGroupUtils entryGroupUtils)
-
Constructor Details
-
DefaultVirtualEntryGroupStrategy
public DefaultVirtualEntryGroupStrategy()
-
-
Method Details
-
createGroup
public void createGroup(@Nonnull 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
-
setEntryGroupUtils
-