Interface CommerceCartDao
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultCommerceCartDao,DefaultSaveCartDao,DefaultSubscriptionCommerceCartDao,SelectiveSaveCartDao
The Interface CommerceCartDao.
-
Method Summary
Modifier and TypeMethodDescriptiongetCartForCodeAndUser(String code, UserModel user) Gets the cart for code and user.getCartForGuidAndSite(String guid, BaseSiteModel site) Gets the cart for guid and site.getCartForGuidAndSiteAndUser(String guid, BaseSiteModel site, UserModel user) Gets the cart for guid and site and user.getCartForSiteAndUser(BaseSiteModel site, UserModel user) Gets the cart for site and user.getCartsForRemovalForSiteAndUser(Date modifiedBefore, BaseSiteModel site, UserModel user) Gets the carts for removal for site and user.getCartsForSiteAndUser(BaseSiteModel site, UserModel user) Gets the carts for site and user.
-
Method Details
-
getCartForGuidAndSiteAndUser
Gets the cart for guid and site and user.- Parameters:
guid- the guidsite- the siteuser- the user- Returns:
- the cart for guid and site and user
-
getCartForGuidAndSite
Gets the cart for guid and site.- Parameters:
guid- the guidsite- the site- Returns:
- the cart for guid and site
-
getCartForCodeAndUser
Gets the cart for code and user.- Parameters:
code- the codeuser- the user- Returns:
- the cart for code and user
-
getCartForSiteAndUser
Gets the cart for site and user. Excluding saved carts and quote carts. To get save cart, useSaveCartDao.getSavedCartsForSiteAndUser(de.hybris.platform.commerceservices.search.pagedata.PageableData, BaseSiteModel, UserModel, List)- Parameters:
site- the siteuser- the user- Returns:
- the cart for site and user
-
getCartsForSiteAndUser
Gets the carts for site and user. Excluding saved carts and quote carts. To get save cart, useSaveCartDao.getSavedCartsForSiteAndUser(de.hybris.platform.commerceservices.search.pagedata.PageableData, BaseSiteModel, UserModel, List)- Parameters:
site- the siteuser- the user- Returns:
- the carts for site and user
-
getCartsForRemovalForSiteAndUser
List<CartModel> getCartsForRemovalForSiteAndUser(Date modifiedBefore, BaseSiteModel site, UserModel user) Gets the carts for removal for site and user. Excluding saved carts. To get save cart for removal, useSaveCartDao.getSavedCartsForRemovalForSite(BaseSiteModel)- Parameters:
modifiedBefore- the modified beforesite- the siteuser- the user- Returns:
- the carts for removal for site and user
-