Class DefaultShoppingProductService

java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
de.hybris.platform.product.impl.DefaultProductService
de.hybris.platform.shoppingservices.services.impl.DefaultShoppingProductService
All Implemented Interfaces:
de.hybris.platform.product.ProductService, ShoppingProductService, Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

public class DefaultShoppingProductService extends de.hybris.platform.product.impl.DefaultProductService implements ShoppingProductService
The Shopping extension of DefaultProductService class to get the Commerce Products belonging to a specific category.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService

    de.hybris.platform.servicelayer.internal.service.AbstractService.SerializableDTO
  • Field Summary

    Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService

    modelService, sessionService, txManager

    Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService

    tenant
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns all Commerce Products belonging to the specified Category as a List.
    getCommerceProductsForCategory(CategoryModel category, int start, int count)
    Returns the specified range of Commerce Products belonging to the specified Category as a List.
    Gets shopping product dao.
    void
    Sets shopping product dao.

    Methods inherited from class de.hybris.platform.product.impl.DefaultProductService

    containsProductsForCategory, getAllProductsCountForCategory, getAllProductsForCatalogVersion, getOfflineProductsForCategory, getOnlineProductsForCategory, getOrderableUnit, getProduct, getProduct, getProductDao, getProductForCode, getProductForCode, getProducts, getProducts, getProductsCountForCategory, getProductsForCategory, getProductsForCategory, getUnit, setPriceService, setProductDao, setUnitDao

    Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService

    getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManager

    Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService

    afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface de.hybris.platform.product.ProductService

    containsProductsForCategory, getAllProductsCountForCategory, getAllProductsForCatalogVersion, getOfflineProductsForCategory, getOnlineProductsForCategory, getOrderableUnit, getProduct, getProduct, getProductForCode, getProductForCode, getProducts, getProducts, getProductsCountForCategory, getProductsForCategory, getProductsForCategory, getUnit
  • Constructor Details

    • DefaultShoppingProductService

      public DefaultShoppingProductService()
  • Method Details

    • getCommerceProductsForCategory

      public List<ProductModel> getCommerceProductsForCategory(CategoryModel category)
      Description copied from interface: ShoppingProductService
      Returns all Commerce Products belonging to the specified Category as a List. For the search the current session active catalog versions of the current user are used.
      Specified by:
      getCommerceProductsForCategory in interface ShoppingProductService
      Parameters:
      category - the category the returned Products belong to
      Returns:
      a list of Products which belong to the specified Category
    • getCommerceProductsForCategory

      public List<ProductModel> getCommerceProductsForCategory(CategoryModel category, int start, int count)
      Description copied from interface: ShoppingProductService
      Returns the specified range of Commerce Products belonging to the specified Category as a List. For the search the current session active catalogversions of the current user are used.
      Specified by:
      getCommerceProductsForCategory in interface ShoppingProductService
      Parameters:
      category - the category the returned Products belong to
      start - index position of the first Product, which will be included in the returned List
      count - number of Products which will be returned in the List
      Returns:
      a list of Products with belong to the specified Category
    • getShoppingProductDao

      protected ShoppingProductDao getShoppingProductDao()
      Gets shopping product dao.
      Returns:
      the shopping product dao
    • setShoppingProductDao

      public void setShoppingProductDao(ShoppingProductDao shoppingProductDao)
      Sets shopping product dao.
      Parameters:
      shoppingProductDao - the shopping product dao