Class DefaultStockLevelProductStrategy
java.lang.Object
de.hybris.platform.stock.strategy.impl.DefaultStockLevelProductStrategy
- All Implemented Interfaces:
StockLevelProductStrategy
This impl. will use the configured 'qualifier' for code generation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(ProductModel model) Returns a product related ID forStockLevel.Returns a product model based of the assigned ID.voidsetQualifier(String qualifier)
-
Constructor Details
-
DefaultStockLevelProductStrategy
public DefaultStockLevelProductStrategy()
-
-
Method Details
-
convert
Returns a product related ID forStockLevel.- Specified by:
convertin interfaceStockLevelProductStrategy- Parameters:
model- the product we need a StockLelevel 'productCode' for.- Returns:
- String the code of the assigned product.
-
convert
Returns a product model based of the assigned ID.- Specified by:
convertin interfaceStockLevelProductStrategy- Parameters:
productCode- the product code- Returns:
- ProductModel the product with the specified code.
-
setQualifier
- Parameters:
qualifier- the qualifier to set
-