Interface StockLevelProductStrategy
- All Known Implementing Classes:
DefaultStockLevelProductStrategy
public interface StockLevelProductStrategy
This strategy will be used by the
StockService for generating a product related ID, which will be stored
at StockLevel.-
Method Summary
Modifier and TypeMethodDescriptionconvert(ProductModel model) Returns a product related ID forStockLevel.Returns a product model based of the assigned ID.
-
Method Details
-
convert
Returns a product related ID forStockLevel.- Parameters:
model- the product we need a StockLelevel 'productCode' for.- Returns:
- String the StckLevel#productCode
-
convert
Returns a product model based of the assigned ID.- Parameters:
productCode- the product code- Returns:
- ProductModel the product with the specified code.
-