Class DefaultCommerceProductService
java.lang.Object
de.hybris.platform.commerceservices.product.impl.DefaultCommerceProductService
- All Implemented Interfaces:
CommerceProductService
Default implementation of
CommerceProductService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetStockLevelForProduct(ProductModel productModel) Deprecated, for removal: This API element is subject to removal in a future version.Since 5.0.protected StockServiceGets the super categories except classification classes.protected WarehouseServicevoidsetStockService(StockService stockService) voidsetWarehouseService(WarehouseService warehouseService) protected booleantoBeConverted(CategoryModel categoryModel, String catalogId)
-
Constructor Details
-
DefaultCommerceProductService
public DefaultCommerceProductService()
-
-
Method Details
-
getStockService
-
setStockService
-
getWarehouseService
-
setWarehouseService
-
getSuperCategoriesExceptClassificationClassesForProduct
public Collection<CategoryModel> getSuperCategoriesExceptClassificationClassesForProduct(ProductModel productModel) throws IllegalArgumentException Description copied from interface:CommerceProductServiceGets the super categories except classification classes.- Specified by:
getSuperCategoriesExceptClassificationClassesForProductin interfaceCommerceProductService- Parameters:
productModel- the product model to retrieve super categories from- Returns:
- the super categories except classification classes items
- Throws:
IllegalArgumentException- the illegal argument exception when given product model isnull
-
getStockLevelForProduct
@Deprecated(since="5.0", forRemoval=true) public Integer getStockLevelForProduct(ProductModel productModel) Deprecated, for removal: This API element is subject to removal in a future version.Since 5.0.- Specified by:
getStockLevelForProductin interfaceCommerceProductService- Parameters:
productModel- the product model to look stock level for- Returns:
- the available stock
-
toBeConverted
-