Interface ProductSearchFacade
- All Known Implementing Classes:
DefaultProductSearchFacade
public interface ProductSearchFacade
Product Search Facade is a facade for searching and retrieving products and categories.
-
Method Summary
Modifier and TypeMethodDescriptionfindProductCategories(String text, PageableData pageableData) Deprecated, for removal: This API element is subject to removal in a future version.default SearchResult<CategoryData>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 usefindProducts(String, PageableData, String)default SearchResult<ProductData>findProducts(String text, PageableData pageableData, String langIsoCode) Method to find products using a free-text form.getProductByUid(String uid) Method to get a product by its product uid.Method to get a category by its category uid.
-
Method Details
-
getProductByUid
Method 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).- Parameters:
uid- the product uid- Returns:
- the Product data object.
- Throws:
UnknownIdentifierException- if no Product with the specified uid is foundAmbiguousIdentifierException- if more than one Product with the specified uid is foundIllegalArgumentException- if parameter uid isnull.
-
findProducts
@Deprecated(since="2005", forRemoval=true) SearchResult<ProductData> findProducts(String text, PageableData pageableData) Deprecated, for removal: This API element is subject to removal in a future version.since 2005, please usefindProducts(String, PageableData, String)Method 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).- Parameters:
text- The free-text string to be used on the product searchpageableData- the pagination object- Returns:
- the search result object.
-
findProducts
default SearchResult<ProductData> findProducts(String text, PageableData pageableData, String langIsoCode) Method 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).- 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
Method 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).- Parameters:
uid- the product category uid- Returns:
- the Category data object containing the resulting list and the pagination object.
- Throws:
UnknownIdentifierException- if no Product Category with the specified uid is foundAmbiguousIdentifierException- if more than one Product Category with the specified uid is foundIllegalArgumentException- if parameter uid isnull.
-
findProductCategories
@Deprecated(since="2005", forRemoval=true) SearchResult<CategoryData> findProductCategories(String text, PageableData pageableData) Deprecated, for removal: This API element is subject to removal in a future version.since 2005, please usefindProductCategories(String, PageableData, String)Method 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).- 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
default SearchResult<CategoryData> findProductCategories(String text, PageableData pageableData, String langIsoCode) Method 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).- 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.
-
findProductCategories(String, PageableData, String)