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 Summary

    Modifier and Type
    Method
    Description
    void
    deleteAll(Collection<P> items, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    Deletes a given collection of items.
    void
    deleteAll(Set<String> itemIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    Deletes a given collection of items.
    void
    deleteAllByListIds(Collection<String> listIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    Deletes all items that belong to multiple item lists
    org.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.CrudEntityService

    create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort
  • Method Details

    • readByItemListId

      org.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
    • readCountsByItemListIds

      Map<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
    • deleteAll

      void 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
    • deleteAll

      void 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
    • deleteAllByListIds

      void 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