Interface CustomizedItemListItemRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>

    • 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 lists
      Map<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 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
      • 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 lists
        contextInfo - 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 from
        context - the request context information