Class DefaultProductCatalogItemModelFinder
- java.lang.Object
-
- de.hybris.platform.cmsfacades.common.service.impl.DefaultProductCatalogItemModelFinder
-
- All Implemented Interfaces:
ProductCatalogItemModelFinder
public class DefaultProductCatalogItemModelFinder extends java.lang.Object implements ProductCatalogItemModelFinder
Default implementation ofProductCatalogItemModelFinderto findProductModelandCategoryModelobjects.
-
-
Constructor Summary
Constructors Constructor Description DefaultProductCatalogItemModelFinder()
-
Method Summary
All Methods Instance Methods Concrete 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 providedcompositeKeyprotected <T> TgetItemModel(java.lang.String itemId, java.lang.Class<T> clazz)ProductModelgetProductForCompositeKey(java.lang.String compositeKey)Gets aProductModelmatching the providedcompositeKeyjava.util.List<ProductModel>getProductsForCompositeKeys(java.util.List<java.lang.String> compositeKeys)Gets a list ofProductModelmatching the providedcompositeKeysprotected SearchRestrictionServicegetSearchRestrictionService()protected SessionServicegetSessionService()protected UniqueItemIdentifierServicegetUniqueItemIdentifierService()voidsetSearchRestrictionService(SearchRestrictionService searchRestrictionService)voidsetSessionService(SessionService sessionService)voidsetUniqueItemIdentifierService(UniqueItemIdentifierService uniqueItemIdentifierService)
-
-
-
Method Detail
-
getProductsForCompositeKeys
public java.util.List<ProductModel> getProductsForCompositeKeys(java.util.List<java.lang.String> compositeKeys)
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
public java.util.List<CategoryModel> getCategoriesForCompositeKeys(java.util.List<java.lang.String> compositeKeys)
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
public ProductModel getProductForCompositeKey(java.lang.String compositeKey)
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
public CategoryModel getCategoryForCompositeKey(java.lang.String compositeKey)
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
protected <T> T getItemModel(java.lang.String itemId, java.lang.Class<T> clazz)
-
getSearchRestrictionService
protected SearchRestrictionService getSearchRestrictionService()
-
setSearchRestrictionService
public void setSearchRestrictionService(SearchRestrictionService searchRestrictionService)
-
getSessionService
protected SessionService getSessionService()
-
setSessionService
public void setSessionService(SessionService sessionService)
-
getUniqueItemIdentifierService
protected UniqueItemIdentifierService getUniqueItemIdentifierService()
-
setUniqueItemIdentifierService
public void setUniqueItemIdentifierService(UniqueItemIdentifierService uniqueItemIdentifierService)
-
-