Class DefaultVirtualEntryGroupStrategy

java.lang.Object
de.hybris.platform.commercefacades.order.impl.DefaultVirtualEntryGroupStrategy
All Implemented Interfaces:
VirtualEntryGroupStrategy

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

    • DefaultVirtualEntryGroupStrategy

      public DefaultVirtualEntryGroupStrategy()
  • Method Details

    • createGroup

      public void createGroup(@Nonnull 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
    • createVirtualGroup

      protected EntryGroupData createVirtualGroup(@Nonnull OrderEntryData standaloneEntry, int nextGroupNumber)
    • getEntryGroupUtils

      protected CommerceEntryGroupUtils getEntryGroupUtils()
    • setEntryGroupUtils

      public void setEntryGroupUtils(CommerceEntryGroupUtils entryGroupUtils)