Interface ProductCatalogItemModelFinder
-
- All Known Implementing Classes:
DefaultProductCatalogItemModelFinder
public interface ProductCatalogItemModelFinderService to findItemModelfrom a product catalog.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<CategoryModel>getCategoriesForCompositeKeys(java.util.List<java.lang.String> compositeKeys)Gets a list ofCategoryModelmatching the providedcompositeKeysCategoryModelgetCategoryForCompositeKey(java.lang.String compositeKey)Gets aCategoryModelmatching the providedcompositeKeyProductModelgetProductForCompositeKey(java.lang.String compositeKey)Gets aProductModelmatching the providedcompositeKeyjava.util.List<ProductModel>getProductsForCompositeKeys(java.util.List<java.lang.String> compositeKeys)Gets a list ofProductModelmatching the providedcompositeKeys
-
-
-
Method Detail
-
getProductsForCompositeKeys
java.util.List<ProductModel> getProductsForCompositeKeys(java.util.List<java.lang.String> compositeKeys)
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
ProductModel getProductForCompositeKey(java.lang.String compositeKey)
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
java.util.List<CategoryModel> getCategoriesForCompositeKeys(java.util.List<java.lang.String> compositeKeys)
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
CategoryModel getCategoryForCompositeKey(java.lang.String compositeKey)
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
-
-