Interface VirtualEntryGroupStrategy

All Known Implementing Classes:
DefaultVirtualEntryGroupStrategy

public interface VirtualEntryGroupStrategy
Defines how virtual entry groups are created in AbstractOrderData for standalone products.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    createGroup(List<EntryGroupData> rootGroups, OrderEntryData standaloneEntry)
    Assigns the standalone entry to an entry group.
  • Method Details

    • createGroup

      void createGroup(@Nonnull List<EntryGroupData> rootGroups, @Nonnull OrderEntryData standaloneEntry)
      Assigns the standalone entry to an entry group. The groups can be any of rootGroups, their children or a new one. In the last case the implementation should attach the new group to the appropriate parent among rootGroups.
      Parameters:
      rootGroups - entry group structure. All grouped entries are already in.
      standaloneEntry - a standalone entry