Interface ProductCatalogItemModelFinder
-
- All Known Implementing Classes:
DefaultProductCatalogItemModelFinder
public interface ProductCatalogItemModelFinder
Service to findItemModel
from 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 ofCategoryModel
matching the providedcompositeKeys
CategoryModel
getCategoryForCompositeKey(java.lang.String compositeKey)
Gets aCategoryModel
matching the providedcompositeKey
ProductModel
getProductForCompositeKey(java.lang.String compositeKey)
Gets aProductModel
matching the providedcompositeKey
java.util.List<ProductModel>
getProductsForCompositeKeys(java.util.List<java.lang.String> compositeKeys)
Gets a list ofProductModel
matching the providedcompositeKeys
-
-
-
Method Detail
-
getProductsForCompositeKeys
java.util.List<ProductModel> getProductsForCompositeKeys(java.util.List<java.lang.String> compositeKeys)
Gets a list ofProductModel
matching 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 aProductModel
matching 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 ofCategoryModel
matching 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 aCategoryModel
matching 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
-
-