Class DefaultProductCatalogItemModelFinder
java.lang.Object
de.hybris.platform.cmsfacades.common.service.impl.DefaultProductCatalogItemModelFinder
- All Implemented Interfaces:
ProductCatalogItemModelFinder
public class DefaultProductCatalogItemModelFinder
extends Object
implements ProductCatalogItemModelFinder
Default implementation of
ProductCatalogItemModelFinder to find ProductModel and CategoryModel objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCategoriesForCompositeKeys(List<String> compositeKeys) Gets a list ofCategoryModelmatching the providedcompositeKeysgetCategoryForCompositeKey(String compositeKey) Gets aCategoryModelmatching the providedcompositeKeyprotected <T> TgetItemModel(String itemId, Class<T> clazz) getProductForCompositeKey(String compositeKey) Gets aProductModelmatching the providedcompositeKeygetProductsForCompositeKeys(List<String> compositeKeys) Gets a list ofProductModelmatching the providedcompositeKeysprotected SearchRestrictionServiceprotected SessionServiceprotected UniqueItemIdentifierServicevoidsetSearchRestrictionService(SearchRestrictionService searchRestrictionService) voidsetSessionService(SessionService sessionService) voidsetUniqueItemIdentifierService(UniqueItemIdentifierService uniqueItemIdentifierService)
-
Constructor Details
-
DefaultProductCatalogItemModelFinder
public DefaultProductCatalogItemModelFinder()
-
-
Method Details
-
getProductsForCompositeKeys
Gets a list ofProductModelmatching the providedcompositeKeysby disabling search restrictions.- Specified by:
getProductsForCompositeKeysin interfaceProductCatalogItemModelFinder- Parameters:
compositeKeys- - the keys containing the product catalog, product version and product uid- Returns:
- a list of products
-
getCategoriesForCompositeKeys
Gets a list ofCategoryModelmatching the providedcompositeKeysby disabling search restrictions.- Specified by:
getCategoriesForCompositeKeysin interfaceProductCatalogItemModelFinder- Parameters:
compositeKeys- - the keys containing the product catalog, product version and catalog uid- Returns:
- a list of categories
-
getProductForCompositeKey
Description copied from interface:ProductCatalogItemModelFinderGets aProductModelmatching the providedcompositeKey- Specified by:
getProductForCompositeKeyin interfaceProductCatalogItemModelFinder- Parameters:
compositeKey- - the key containing the product catalog, product version and product uid- Returns:
- a product model
-
getCategoryForCompositeKey
Description copied from interface:ProductCatalogItemModelFinderGets aCategoryModelmatching the providedcompositeKey- Specified by:
getCategoryForCompositeKeyin interfaceProductCatalogItemModelFinder- Parameters:
compositeKey- - the key containing the product catalog, product version and catalog uid- Returns:
- a category model
-
getItemModel
-
getSearchRestrictionService
-
setSearchRestrictionService
-
getSessionService
-
setSessionService
-
getUniqueItemIdentifierService
-
setUniqueItemIdentifierService
-