public class DefaultVirtualEntryGroupStrategy extends java.lang.Object implements VirtualEntryGroupStrategy
VirtualEntryGroupStrategy.
Creates separate root entry group for each standalone entry.| Constructor and Description |
|---|
DefaultVirtualEntryGroupStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
createGroup(java.util.List<EntryGroupData> rootGroups,
OrderEntryData standaloneEntry)
Assigns the standalone entry to an entry group.
|
protected EntryGroupData |
createVirtualGroup(OrderEntryData standaloneEntry,
int nextGroupNumber) |
protected CommerceEntryGroupUtils |
getEntryGroupUtils() |
void |
setEntryGroupUtils(CommerceEntryGroupUtils entryGroupUtils) |
public void createGroup(java.util.List<EntryGroupData> rootGroups, OrderEntryData standaloneEntry)
VirtualEntryGroupStrategyrootGroups, their children or a new one.
In the last case the implementation should attach the new group to the appropriate parent among rootGroups.createGroup in interface VirtualEntryGroupStrategyrootGroups - entry group structure. All grouped entries are already in.standaloneEntry - a standalone entryprotected EntryGroupData createVirtualGroup(OrderEntryData standaloneEntry, int nextGroupNumber)
protected CommerceEntryGroupUtils getEntryGroupUtils()
public void setEntryGroupUtils(CommerceEntryGroupUtils entryGroupUtils)
Copyright © 2018 SAP SE. All Rights Reserved.