Interface ProductCatalogItemModelFinder
- All Known Implementing Classes:
DefaultProductCatalogItemModelFinder
public interface ProductCatalogItemModelFinder
Service to find
ItemModel from a product catalog.-
Method Summary
Modifier and TypeMethodDescriptiongetCategoriesForCompositeKeys(List<String> compositeKeys) Gets a list ofCategoryModelmatching the providedcompositeKeysgetCategoryForCompositeKey(String compositeKey) Gets aCategoryModelmatching the providedcompositeKeygetProductForCompositeKey(String compositeKey) Gets aProductModelmatching the providedcompositeKeygetProductsForCompositeKeys(List<String> compositeKeys) Gets a list ofProductModelmatching the providedcompositeKeys
-
Method Details
-
getProductsForCompositeKeys
Gets a list ofProductModelmatching the providedcompositeKeys- Parameters:
compositeKeys- - the keys containing the product catalog, product version and product uid- Returns:
- a list of products
-
getProductForCompositeKey
Gets aProductModelmatching the providedcompositeKey- 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
Gets a list ofCategoryModelmatching the providedcompositeKeys- Parameters:
compositeKeys- - the keys containing the product catalog, product version and catalog uid- Returns:
- a list of categories
-
getCategoryForCompositeKey
Gets aCategoryModelmatching the providedcompositeKey- 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
-