Interface ProductCatalogItemModelFinder

All Known Implementing Classes:
DefaultProductCatalogItemModelFinder

public interface ProductCatalogItemModelFinder
Service to find ItemModel from a product catalog.
  • Method Details

    • getProductsForCompositeKeys

      List<ProductModel> getProductsForCompositeKeys(List<String> compositeKeys)
      Gets a list of ProductModel matching the provided compositeKeys
      Parameters:
      compositeKeys - - the keys containing the product catalog, product version and product uid
      Returns:
      a list of products
    • getProductForCompositeKey

      ProductModel getProductForCompositeKey(String compositeKey)
      Gets a ProductModel matching the provided compositeKey
      Parameters:
      compositeKey - - the key containing the product catalog, product version and product uid
      Returns:
      a product model
      Throws:
      UnknownIdentifierException - when the product model matching the given key is not found
    • getCategoriesForCompositeKeys

      List<CategoryModel> getCategoriesForCompositeKeys(List<String> compositeKeys)
      Gets a list of CategoryModel matching the provided compositeKeys
      Parameters:
      compositeKeys - - the keys containing the product catalog, product version and catalog uid
      Returns:
      a list of categories
    • getCategoryForCompositeKey

      CategoryModel getCategoryForCompositeKey(String compositeKey)
      Gets a CategoryModel matching the provided compositeKey
      Parameters:
      compositeKey - - the key containing the product catalog, product version and catalog uid
      Returns:
      a category model
      Throws:
      UnknownIdentifierException - when the product model matching the given key is not found