Class DefaultItemListItemService<P extends com.broadleafcommerce.cart.client.domain.ItemListItem>
- java.lang.Object
- 
- com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
- 
- com.broadleafcommerce.cart.service.DefaultItemListItemService<P>
 
 
- 
- All Implemented Interfaces:
- ItemListItemService<P>,- com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
 
 public class DefaultItemListItemService<P extends com.broadleafcommerce.cart.client.domain.ItemListItem> extends com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P> implements ItemListItemService<P> Default implementation of an item list service.- Author:
- Jacob Mitash
 
- 
- 
Constructor SummaryConstructors Constructor Description DefaultItemListItemService(ItemListItemRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.CrudEntityHelper helper)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteAll(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 listsprotected ItemListItemRepository<com.broadleafcommerce.data.tracking.core.Trackable>getRepository()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.Map<String,Long>readCountsByItemListIds(Iterable<String> itemListIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Finds item counts per item list.- 
Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityServiceconvertFromPersistentDomain, convertToPersistentDomain, create, createAll, createAllAllowingPartialSuccess, delete, getHelper, getSortPositionStrategy, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, setSortPositionStrategy, update, updateAll, updateAllAllowingPartialSuccess, updateSort
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
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
 
- 
 
- 
- 
- 
Constructor Detail- 
DefaultItemListItemServicepublic DefaultItemListItemService(ItemListItemRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.CrudEntityHelper helper) 
 
- 
 - 
Method Detail- 
readByItemListIdpublic 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) Description copied from interface:ItemListItemServiceFind items belonging to a specific list.- Specified by:
- readByItemListIdin interface- ItemListItemService<P extends com.broadleafcommerce.cart.client.domain.ItemListItem>
- 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
 
 - 
readCountsByItemListIdspublic Map<String,Long> readCountsByItemListIds(Iterable<String> itemListIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:ItemListItemServiceFinds item counts per item list.- Specified by:
- readCountsByItemListIdsin interface- ItemListItemService<P extends com.broadleafcommerce.cart.client.domain.ItemListItem>
- 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
 
 - 
deleteAllpublic void deleteAll(Set<String> itemIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:ItemListItemServiceDeletes a given collection of items.- Specified by:
- deleteAllin interface- ItemListItemService<P extends com.broadleafcommerce.cart.client.domain.ItemListItem>
- Parameters:
- itemIds- the IDs of items to delete
- context- the request context information
 
 - 
deleteAllpublic void deleteAll(Collection<P> items, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:ItemListItemServiceDeletes a given collection of items.- Specified by:
- deleteAllin interface- ItemListItemService<P extends com.broadleafcommerce.cart.client.domain.ItemListItem>
- Parameters:
- items- the items to delete
- context- the request context information
 
 - 
deleteAllByListIdspublic void deleteAllByListIds(Collection<String> listIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:ItemListItemServiceDeletes all items that belong to multiple item lists- Specified by:
- deleteAllByListIdsin interface- ItemListItemService<P extends com.broadleafcommerce.cart.client.domain.ItemListItem>
- Parameters:
- listIds- list of item list ids
- context- the request context information
 
 - 
getRepositoryprotected ItemListItemRepository<com.broadleafcommerce.data.tracking.core.Trackable> getRepository() - Overrides:
- getRepositoryin class- com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends com.broadleafcommerce.cart.client.domain.ItemListItem>
 
 
- 
 
-