Class DefaultWishlist2Dao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
-
- de.hybris.platform.wishlist2.impl.daos.impl.DefaultWishlist2Dao
-
- All Implemented Interfaces:
Dao,Wishlist2Dao
public class DefaultWishlist2Dao extends AbstractItemDao implements Wishlist2Dao
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultWishlist2Dao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Wishlist2Model>findAllWishlists(UserModel user)Retrieves all wishlists of the specificUserModelWishlist2ModelfindDefaultWishlist(UserModel user)Retrieves the default wishlist of the specificUserModeljava.util.List<Wishlist2EntryModel>findWishlistEntryByProduct(ProductModel product, Wishlist2Model wishlist)Retrieves all wishlist entries which contain the given product from the specific wishlist-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
-
-
-
Method Detail
-
findAllWishlists
public java.util.List<Wishlist2Model> findAllWishlists(UserModel user)
Description copied from interface:Wishlist2DaoRetrieves all wishlists of the specificUserModel- Specified by:
findAllWishlistsin interfaceWishlist2Dao- Parameters:
user- the owner of the wishlists- Returns:
- all found wishlists
-
findDefaultWishlist
public Wishlist2Model findDefaultWishlist(UserModel user)
Description copied from interface:Wishlist2DaoRetrieves the default wishlist of the specificUserModel- Specified by:
findDefaultWishlistin interfaceWishlist2Dao- Parameters:
user- the owner of the default wishlist- Returns:
- the found wishlist, or null if no default wishlist can be found.
-
findWishlistEntryByProduct
public java.util.List<Wishlist2EntryModel> findWishlistEntryByProduct(ProductModel product, Wishlist2Model wishlist)
Description copied from interface:Wishlist2DaoRetrieves all wishlist entries which contain the given product from the specific wishlist- Specified by:
findWishlistEntryByProductin interfaceWishlist2Dao- Parameters:
product- the product which is contained in the wishlist entry which needs to be foundwishlist- the wishlist which contains the wishlist entry- Returns:
- all found wishlist entries
-
-