Class DefaultVirtualEntryGroupStrategy

  • All Implemented Interfaces:
    VirtualEntryGroupStrategy

    public class DefaultVirtualEntryGroupStrategy
    extends java.lang.Object
    implements VirtualEntryGroupStrategy
    Default implementation of VirtualEntryGroupStrategy. Creates separate root entry group for each standalone entry.
    • Constructor Detail

      • DefaultVirtualEntryGroupStrategy

        public DefaultVirtualEntryGroupStrategy()
    • Method Detail

      • createGroup

        public void createGroup​(@Nonnull
                                java.util.List<EntryGroupData> rootGroups,
                                @Nonnull
                                OrderEntryData standaloneEntry)
        Description copied from interface: VirtualEntryGroupStrategy
        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.
        Specified by:
        createGroup in interface VirtualEntryGroupStrategy
        Parameters:
        rootGroups - entry group structure. All grouped entries are already in.
        standaloneEntry - a standalone entry