Interface CustomizedItemListItemRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
-
- All Known Subinterfaces:
ItemListItemRepository<D>
,JpaItemListItemRepository<D>
- All Known Implementing Classes:
JpaCustomizedItemListItemRepository
public interface CustomizedItemListItemRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
Advanced functionality related to item list repository operations.- Author:
- Jacob Mitash
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deleteAllByListIds(Collection<String> listIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Bulk deletes all items that belong to multiple listsMap<String,Long>
readAllCountsByItemListId(Iterable<String> itemListIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Finds the item count per item list.org.springframework.data.domain.Page<D>
readByItemListId(String itemListId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, org.springframework.data.domain.Pageable page)
Find items belonging to a specific list.
-
-
-
Method Detail
-
readByItemListId
@Policy(operationTypes=READ) org.springframework.data.domain.Page<D> 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 listcontextInfo
- the request context informationpage
- the requested page of results from the database- Returns:
- a page of item lists items owned by the item list
-
readAllCountsByItemListId
Map<String,Long> readAllCountsByItemListId(Iterable<String> itemListIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Finds the item count per item list.- Parameters:
itemListIds
- the IDs of the owning item listscontextInfo
- the request context information- Returns:
- a map of item list IDs and its associated item count
-
deleteAllByListIds
@Policy(operationTypes=DELETE) void deleteAllByListIds(Collection<String> listIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Bulk deletes all items that belong to multiple lists- Parameters:
listIds
- list of item list ids to delete fromcontext
- the request context information
-
-