Interface ItemMergingService<C,​I>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      List<MergeItemPair<I>> mergeItems​(C container, List<I> items, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Determines and prepares item merges between items being added/modified and the items of the container.
    • Method Detail

      • mergeItems

        List<MergeItemPair<I>> mergeItems​(C container,
                                          List<I> items,
                                          @Nullable
                                          com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
        Determines and prepares item merges between items being added/modified and the items of the container.
        Parameters:
        container - the container that holds the items that will be merged.
        items - the items that have been changed or are being added to consider for merging
        context - the context of the request
        Returns:
        a list of matched item pairs that describe what changes should take place in order for the merge to occur