Interface ItemListItemService<P extends com.broadleafcommerce.cart.client.domain.ItemListItem>
- All Superinterfaces:
- com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
- All Known Implementing Classes:
- DefaultItemListItemService
public interface ItemListItemService<P extends com.broadleafcommerce.cart.client.domain.ItemListItem>
extends com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
Service for management of item list items.
- Author:
- Jacob Mitash
- 
Method SummaryModifier and TypeMethodDescriptionvoiddeleteAll(Collection<P> items, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Deletes a given collection of items.voiddeleteAll(Set<String> itemIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Deletes a given collection of items.voiddeleteAllByListIds(Collection<String> listIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Deletes all items that belong to multiple item listsorg.springframework.data.domain.Page<P>readByItemListId(String itemListId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, org.springframework.data.domain.Pageable page) Find items belonging to a specific list.readCountsByItemListIds(Iterable<String> itemListIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds item counts per item list.Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityServicecreate, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort
- 
Method Details- 
readByItemListIdorg.springframework.data.domain.Page<P> readByItemListId(String itemListId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @Nullable org.springframework.data.domain.Pageable page) Find items belonging to a specific list.- Parameters:
- itemListId- the ID of the owning item list
- contextInfo- the request context information
- page- the requested page of results from the database
- Returns:
- a page of item lists items owned by the item list
 
- 
readCountsByItemListIdsMap<String,Long> readCountsByItemListIds(Iterable<String> itemListIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds item counts per item list.- Parameters:
- itemListIds- the IDs of the owning item lists
- contextInfo- the request context information
- Returns:
- a map of item lists ids and their item counts
 
- 
deleteAllvoid deleteAll(Set<String> itemIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Deletes a given collection of items.- Parameters:
- itemIds- the IDs of items to delete
- context- the request context information
 
- 
deleteAllvoid deleteAll(Collection<P> items, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Deletes a given collection of items.- Parameters:
- items- the items to delete
- context- the request context information
 
- 
deleteAllByListIdsvoid deleteAllByListIds(Collection<String> listIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Deletes all items that belong to multiple item lists- Parameters:
- listIds- list of item list ids
- context- the request context information
 
 
-