public interface ItemListItemProvider<I extends com.broadleafcommerce.cart.client.domain.ItemListItem>
Modifier and Type | Method and Description |
---|---|
List<I> |
createItems(String listId,
Collection<I> items,
com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Creates items within a specific list.
|
void |
deleteItems(String listId,
Collection<String> itemIds,
com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Deletes items within a specific list
|
org.springframework.data.domain.Page<I> |
getItemPage(String listId,
org.springframework.data.domain.Pageable pageable,
com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Gets a page of items belonging to a specific item list.
|
List<I> |
getItems(String listId,
Collection<String> itemIds,
com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Gets specific items of a list by their IDs.
|
List<I> |
replaceItems(String listId,
Collection<I> items,
com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Replaces items within a specific list.
|
List<I> |
updateItems(String listId,
Collection<I> items,
com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Updates items within a specific list.
|
org.springframework.data.domain.Page<I> getItemPage(String listId, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
listId
- the ID of the item list to get items frompageable
- the details of the page of items to includecontext
- the context of the requestList<I> getItems(String listId, Collection<String> itemIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
listId
- the ID of the item list to get items fromitemIds
- the IDs of the items to getcontext
- the context of the requestList<I> createItems(String listId, Collection<I> items, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
listId
- the ID of the item list to create items initems
- the items to createcontext
- the context of the requestList<I> replaceItems(String listId, Collection<I> items, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
listId
- the ID of the item list to replace items initems
- the items to replace and their corresponding data (item ID included)context
- the context of the requestList<I> updateItems(String listId, Collection<I> items, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
listId
- the ID of the item list to update items initems
- the items to update and their corresponding data (item ID included)context
- the context of the requestvoid deleteItems(String listId, Collection<String> itemIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
listId
- the ID of the item list to delete items fromitemIds
- the IDs of the items to deletecontext
- the context of the requestCopyright © 2021. All rights reserved.