Interface VirtualEntryGroupStrategy

  • All Known Implementing Classes:
    DefaultVirtualEntryGroupStrategy

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

      • createGroup

        void createGroup​(@Nonnull
                         java.util.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