Uses of Class
com.broadleafcommerce.cartoperation.domain.MergeItemPair
-
Uses of MergeItemPair in com.broadleafcommerce.cartoperation.service
Modifier and TypeMethodDescriptionprotected List<MergeItemPair<I>>
AbstractItemMergingService.findMatchingItems
(@NonNull Collection<I> containerItems, @NonNull Collection<I> itemsToAdd) Finds matching item pairs across the collections of items.protected List<MergeItemPair<I>>
AbstractItemMergingService.findMatchingItems
(C container, @NonNull Collection<I> itemsToAdd, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Finds matching items in the container to the collection of items.AbstractItemMergingService.mergeItems
(C container, @NonNull List<I> itemsToAdd, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) ItemMergingService.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.Modifier and TypeMethodDescriptionprotected CatalogItemRequest
DefaultCartItemMergingService.buildCatalogItemRequest
(@NonNull MergeItemPair<I> mergeItemPair, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Hook point to build theCatalogItemRequest
and populate any additional attributes that should be passed to theCatalogProvider
when fetching the catalog representation for merging the cart item.protected CatalogItemRequest
DefaultItemListItemMergingService.buildCatalogItemRequest
(@NonNull MergeItemPair<I> mergeItemPair, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Hook point to build theCatalogItemRequest
and populate any additional attributes that should be passed to theCatalogProvider
when fetching the catalog representation for merging the item list item.protected abstract void
AbstractItemMergingService.doMergeCombine
(MergeItemPair<I> itemPair) Perform the actual combination of two items (quantity change) for the combination merge type.protected void
DefaultCartItemMergingService.doMergeCombine
(@NonNull MergeItemPair<I> itemPair) protected void
DefaultItemListItemMergingService.doMergeCombine
(@NonNull MergeItemPair<I> itemPair) protected String
DefaultCartItemMergingService.identifyCatalogItemKey
(@NonNull MergeItemPair<I> mergeItemPair, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected String
DefaultItemListItemMergingService.identifyCatalogItemKey
(@NonNull MergeItemPair<I> mergeItemPair, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected void
AbstractItemMergingService.merge
(@NonNull MergeItemPair<I> itemPair) Merges the item pair using the merge type of the pair.protected void
AbstractItemMergingService.mergeCombine
(@NonNull MergeItemPair<I> itemPair) Performs a "combination" merge for an item pair.protected void
AbstractItemMergingService.mergeIgnore
(@NonNull MergeItemPair<I> itemPair) Performs a "reject or ignore" merge for an item pair.protected void
AbstractItemMergingService.mergeSeparate
(@NonNull MergeItemPair<I> itemPair) Performs a "separate" merge for an item pair.Modifier and TypeMethodDescriptionprotected Collection<CatalogItemRequest>
DefaultCartItemMergingService.buildCatalogItemRequestsForMergeItem
(@NonNull List<MergeItemPair<I>> mergeItemPairs, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected Collection<CatalogItemRequest>
DefaultItemListItemMergingService.buildCatalogItemRequestsForMergeItem
(@NonNull List<MergeItemPair<I>> mergeItemPairs, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected abstract void
AbstractItemMergingService.resolveMergeTypes
(@NonNull List<MergeItemPair<I>> itemPairs, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Determines what merge types should be used for the items and applies it to the merge item pairs.protected void
DefaultCartItemMergingService.resolveMergeTypes
(@NonNull List<MergeItemPair<I>> mergeItemPairs, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected void
DefaultItemListItemMergingService.resolveMergeTypes
(@NonNull List<MergeItemPair<I>> mergeItemPairs, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)