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, txManagerFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCommerceProductsForCategory(CategoryModel category) 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.protected ShoppingProductDaoGets shopping product dao.voidsetShoppingProductDao(ShoppingProductDao shoppingProductDao) 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, setUnitDaoMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
Description copied from interface:ShoppingProductServiceReturns 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:
getCommerceProductsForCategoryin interfaceShoppingProductService- 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:ShoppingProductServiceReturns 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:
getCommerceProductsForCategoryin interfaceShoppingProductService- Parameters:
category- the category the returned Products belong tostart- index position of the first Product, which will be included in the returned Listcount- number of Products which will be returned in the List- Returns:
- a list of Products with belong to the specified Category
-
getShoppingProductDao
Gets shopping product dao.- Returns:
- the shopping product dao
-
setShoppingProductDao
Sets shopping product dao.- Parameters:
shoppingProductDao- the shopping product dao
-