public interface ItemListProvider<P extends com.broadleafcommerce.cart.client.domain.ItemList>
Modifier and Type | Method and Description |
---|---|
P |
create(P itemList,
com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Creates an item list.
|
void |
delete(Set<String> listIds,
com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Deletes multiple item lists by IDs.
|
void |
delete(String listId,
com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Deletes an item list by ID.
|
P |
readById(String listId,
boolean hydrate,
com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Reads a specific item list by its ID and optionally hydrates the items.
|
default P |
readById(String listId,
com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Reads a specific item list by its ID.
|
org.springframework.data.domain.Page<P> |
readByIds(Set<String> listIds,
cz.jirutka.rsql.parser.ast.Node filters,
org.springframework.data.domain.Pageable page,
com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Reads specific item lists by their IDs.
|
P |
replace(P itemList,
String id,
com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Replaces an item list.
|
P |
update(P itemList,
String id,
com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Updates an item list.
|
default P readById(String listId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
listId
- the ID of the item list to retrievecontext
- the context of the requestP readById(String listId, boolean hydrate, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
listId
- the ID of the item list to retrievehydrate
- if true, causes the items to by hydratedcontext
- the context of the requestorg.springframework.data.domain.Page<P> readByIds(Set<String> listIds, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
listIds
- the IDs of the item lists to retrievefilters
- additional filters to apply in the query.page
- the requested page of results from the databasecontext
- the context of the requestP create(P itemList, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
itemList
- the item list to createcontext
- the context of the requestP replace(P itemList, String id, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
itemList
- the item list to replace withid
- the ID of the item listcontext
- the context of the requestP update(P itemList, String id, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
itemList
- the item list to update withid
- the ID of the item listcontext
- the context of the requestvoid delete(String listId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
listId
- the ID of the item list to deletecontext
- the context of the requestCopyright © 2021. All rights reserved.