Class DefaultStockLevelProductStrategy

java.lang.Object
de.hybris.platform.stock.strategy.impl.DefaultStockLevelProductStrategy
All Implemented Interfaces:
StockLevelProductStrategy

public class DefaultStockLevelProductStrategy extends Object implements StockLevelProductStrategy
This impl. will use the configured 'qualifier' for code generation.
  • Constructor Details

    • DefaultStockLevelProductStrategy

      public DefaultStockLevelProductStrategy()
  • Method Details

    • convert

      public String convert(ProductModel model)
      Returns a product related ID for StockLevel.
      Specified by:
      convert in interface StockLevelProductStrategy
      Parameters:
      model - the product we need a StockLelevel 'productCode' for.
      Returns:
      String the code of the assigned product.
    • convert

      public ProductModel convert(String productCode)
      Returns a product model based of the assigned ID.
      Specified by:
      convert in interface StockLevelProductStrategy
      Parameters:
      productCode - the product code
      Returns:
      ProductModel the product with the specified code.
    • setQualifier

      public void setQualifier(String qualifier)
      Parameters:
      qualifier - the qualifier to set