public interface IShoppingCartPersistenceService
| Modifier and Type | Method and Description |
|---|---|
void |
emptyShoppingCartOfUser(String strUserName,
boolean bNotifyProviderService)
Remove every shopping cart items of a given user
|
ShoppingCartItem |
findItemById(int nIdShoppingCartItem)
Get a shopping cart item from its id
|
List<ShoppingCartItem> |
findItemsByFilter(ShoppingCartItemFilter filter)
Find items by filter
|
List<ShoppingCartItem> |
getItemsOfUser(String strUserName)
Get the items of a given user
|
String |
getServiceName()
Get the name of the persistence service
|
void |
removeItemFromUserShoppingCart(String strUserName,
int nIdShoppingCartItem,
boolean bNotifyProviderService)
Remove an item from the shopping cart of a user
|
void |
saveItem(ShoppingCartItem item)
Save a shopping cart item
|
boolean |
supportAnonymousUsers()
Check whether this service support anonymous users
|
void saveItem(ShoppingCartItem item)
item - The item to saveboolean supportAnonymousUsers()
List<ShoppingCartItem> findItemsByFilter(ShoppingCartItemFilter filter)
filter - The filter that items must matchList<ShoppingCartItem> getItemsOfUser(String strUserName)
strUserName - The name of the user to get the items ofString getServiceName()
void removeItemFromUserShoppingCart(String strUserName, int nIdShoppingCartItem, boolean bNotifyProviderService)
strUserName - The name of the user to remove the item ofnIdShoppingCartItem - The id of the item to removebNotifyProviderService - True to notify the provider service, false
otherwisevoid emptyShoppingCartOfUser(String strUserName, boolean bNotifyProviderService)
strUserName - The name of the user to remove items ofbNotifyProviderService - True to notify the provider service, false
otherwiseShoppingCartItem findItemById(int nIdShoppingCartItem)
nIdShoppingCartItem - The id of the shopping cart itemCopyright © 2014 Mairie de Paris. All rights reserved.