Class DefaultProductSearchFacade
java.lang.Object
de.hybris.platform.cmssmarteditwebservices.products.facade.impl.DefaultProductSearchFacade
- All Implemented Interfaces:
ProductSearchFacade
Default implementation of the
ProductSearchFacade interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ItemDatabuildItemData(String code, String typeCode) Returns theItemDataobject that represents a product with its unique identifier code.findProductCategories(String text, PageableData pageableData) Deprecated, for removal: This API element is subject to removal in a future version.findProductCategories(String text, PageableData pageableData, String langIsoCode) Method to find product categories using a free-text form.findProducts(String text, PageableData pageableData) Deprecated, for removal: This API element is subject to removal in a future version.since 2005, please useProductSearchFacade.findProducts(String, PageableData, String)findProducts(String text, PageableData pageableData, String langIsoCode) Method to find products using a free-text form.protected CatalogVersionServiceprotected Converter<CategoryData,CategoryData> protected CMSAdminSiteServiceprotected CommonI18NServiceprotected I18NServicegetProductByUid(String uid) Method to get a product by its product uid.Method to get a category by its category uid.protected Converter<ProductData,ProductData> protected ProductSearchFacadeprotected UniqueItemIdentifierServiceprotected voidsetCatalogVersionInSession(CatalogVersionModel catalogVersion) Sets the catalog version in the session so we can reuse ProductSearchFacade correctly.voidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetCategoryDataConverter(Converter<CategoryData, CategoryData> categoryDataConverter) voidsetCmsAdminSiteService(CMSAdminSiteService cmsAdminSiteService) voidsetCommonI18NService(CommonI18NService commonI18NService) protected voidsetCurrentLocale(String langIsoCode) Sets current locale by language iso code.voidsetI18NService(I18NService i18NService) voidsetProductDataConverter(Converter<ProductData, ProductData> productDataConverter) voidsetProductSearchFacade(ProductSearchFacade productSearchFacade) voidsetUniqueItemIdentifierService(UniqueItemIdentifierService uniqueItemIdentifierService)
-
Constructor Details
-
DefaultProductSearchFacade
public DefaultProductSearchFacade()
-
-
Method Details
-
getProductByUid
Description copied from interface:ProductSearchFacadeMethod to get a product by its product uid. It expects the base site to be previously identified usingBaseSiteService.setCurrentBaseSite(String, boolean)and the catalog version to be stored inSessionServiceCatalogConstants.SESSION_CATALOG_VERSIONS. For your convenience, useCatalogVersionService.setSessionCatalogVersion(String, String).- Specified by:
getProductByUidin interfaceProductSearchFacade- Parameters:
uid- the product uid- Returns:
- the Product data object.
-
findProducts
@Deprecated(since="2005", forRemoval=true) public SearchResult<ProductData> findProducts(String text, PageableData pageableData) Deprecated, for removal: This API element is subject to removal in a future version.since 2005, please useProductSearchFacade.findProducts(String, PageableData, String)Description copied from interface:ProductSearchFacadeMethod to find products using a free-text form. It also supports pagination. It expects the catalog version to be stored inSessionServiceCatalogConstants.SESSION_CATALOG_VERSIONS. For your convenience, useCatalogVersionService.setSessionCatalogVersion(String, String).- Specified by:
findProductsin interfaceProductSearchFacade- Parameters:
text- The free-text string to be used on the product searchpageableData- the pagination object- Returns:
- the search result object.
-
findProducts
public SearchResult<ProductData> findProducts(String text, PageableData pageableData, String langIsoCode) Description copied from interface:ProductSearchFacadeMethod to find products using a free-text form. It also supports pagination. It expects the catalog version to be stored inSessionServiceCatalogConstants.SESSION_CATALOG_VERSIONS. For your convenience, useCatalogVersionService.setSessionCatalogVersion(String, String).- Specified by:
findProductsin interfaceProductSearchFacade- Parameters:
text- The free-text string to be used on the product searchpageableData- the pagination objectlangIsoCode- The language iso code to be used on product search.- Returns:
- the search result object.
-
getProductCategoryByUid
Description copied from interface:ProductSearchFacadeMethod to get a category by its category uid. It expects the base site to be previously identified usingBaseSiteService.setCurrentBaseSite(String, boolean)and the catalog version to be stored inSessionServiceCatalogConstants.SESSION_CATALOG_VERSIONS. For your convenience, useCatalogVersionService.setSessionCatalogVersion(String, String).- Specified by:
getProductCategoryByUidin interfaceProductSearchFacade- Parameters:
uid- the product category uid- Returns:
- the Category data object containing the resulting list and the pagination object.
-
findProductCategories
@Deprecated(since="2005", forRemoval=true) public SearchResult<CategoryData> findProductCategories(String text, PageableData pageableData) Deprecated, for removal: This API element is subject to removal in a future version.since 2005, please useProductSearchFacade.findProductCategories(String, PageableData, String)Description copied from interface:ProductSearchFacadeMethod to find product categories using a free-text form. It also supports pagination. It expects the catalog version to be stored inSessionServiceCatalogConstants.SESSION_CATALOG_VERSIONS. For your convenience, useCatalogVersionService.setSessionCatalogVersion(String, String).- Specified by:
findProductCategoriesin interfaceProductSearchFacade- Parameters:
text- The free-text string to be used on the product category searchpageableData- the pagination object- Returns:
- the search result object containing the resulting list and the pagination object.
-
findProductCategories
public SearchResult<CategoryData> findProductCategories(String text, PageableData pageableData, String langIsoCode) Description copied from interface:ProductSearchFacadeMethod to find product categories using a free-text form. It also supports pagination. It expects the catalog version to be stored inSessionServiceCatalogConstants.SESSION_CATALOG_VERSIONS. For your convenience, useCatalogVersionService.setSessionCatalogVersion(String, String).- Specified by:
findProductCategoriesin interfaceProductSearchFacade- Parameters:
text- The free-text string to be used on the product category searchpageableData- the pagination objectlangIsoCode- The language iso code to be used on category search.- Returns:
- the search result object containing the resulting list and the pagination object.
-
setCurrentLocale
Sets current locale by language iso code.- Parameters:
langIsoCode- the language iso code.
-
setCatalogVersionInSession
Sets the catalog version in the session so we can reuse ProductSearchFacade correctly.- Parameters:
catalogVersion- the catalog version to be set in the session
-
buildItemData
Returns theItemDataobject that represents a product with its unique identifier code.- Parameters:
code- the unique identifier codetypeCode- the TYPE CODE of the Item model- Returns:
- the item data object that represents the product
-
getProductSearchFacade
-
setProductSearchFacade
-
getCategoryDataConverter
-
setCategoryDataConverter
-
getProductDataConverter
-
setProductDataConverter
-
getUniqueItemIdentifierService
-
setUniqueItemIdentifierService
-
getCatalogVersionService
-
setCatalogVersionService
-
getCmsAdminSiteService
-
setCmsAdminSiteService
-
getI18NService
-
setI18NService
-
getCommonI18NService
-
setCommonI18NService
-
ProductSearchFacade.findProductCategories(String, PageableData, String)