Class DefaultProductCategorySearchService
java.lang.Object
de.hybris.platform.cmsfacades.products.service.impl.DefaultProductCategorySearchService
- All Implemented Interfaces:
ProductCategorySearchService
public class DefaultProductCategorySearchService
extends Object
implements ProductCategorySearchService
Default implementation of
ProductCategorySearchService using de.hybris.platform.cmsfacades.namedquery.service.NamedQueryService.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindProductCategories(String text, PageableData pageableData, CatalogVersionModel catalogVersion) Method to find product categories using a free-text form.protected I18NServiceprotected NamedQuerygetNamedQueryForProductCategorySearch(String text, PageableData pageableData, CatalogVersionModel catalogVersion) Get the NamedQuery data bean for searching product categories.protected NamedQueryServicevoidsetI18NService(I18NService i18NService) voidsetNamedQueryService(NamedQueryService namedQueryService)
-
Field Details
-
NAMED_QUERY_CATEGORY_SEARCH_BY_TEXT
- See Also:
-
NAMED_QUERY_CATEGORY_SEARCH_BY_TEXT_OUTER_JOIN_LP
- See Also:
-
-
Constructor Details
-
DefaultProductCategorySearchService
public DefaultProductCategorySearchService()
-
-
Method Details
-
findProductCategories
public SearchResult<CategoryModel> findProductCategories(String text, PageableData pageableData, CatalogVersionModel catalogVersion) Description copied from interface:ProductCategorySearchServiceMethod to find product categories using a free-text form. It also supports pagination. Query for a localized field (`name` in example) it inner joins a second table (_lp IIRC) where the values per language is stored It should add the modifier :o (for outer join) to the localized field - Specified by:
findProductCategoriesin interfaceProductCategorySearchService- Parameters:
text- The free-text string to be used on the product category searchpageableData- the pagination objectcatalogVersion- the catalog version to search for the product categories from- Returns:
- the search result object containing the resulting list and the pagination object.
-
getNamedQueryForProductCategorySearch
protected NamedQuery getNamedQueryForProductCategorySearch(String text, PageableData pageableData, CatalogVersionModel catalogVersion) Get the NamedQuery data bean for searching product categories.- Parameters:
text- the free text search that will be used in category name, description and codepageableData- the pageable datacatalogVersion- the catalog version where the category lives- Returns:
- the named query bean
-
getNamedQueryService
-
setNamedQueryService
-
getI18NService
-
setI18NService
-