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 Details

    • NAMED_QUERY_CATEGORY_SEARCH_BY_TEXT

      public static final String NAMED_QUERY_CATEGORY_SEARCH_BY_TEXT
      See Also:
    • NAMED_QUERY_CATEGORY_SEARCH_BY_TEXT_OUTER_JOIN_LP

      public static final String 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: ProductCategorySearchService
      Method 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:
      findProductCategories in interface ProductCategorySearchService
      Parameters:
      text - The free-text string to be used on the product category search
      pageableData - the pagination object
      catalogVersion - 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 code
      pageableData - the pageable data
      catalogVersion - the catalog version where the category lives
      Returns:
      the named query bean
    • getNamedQueryService

      protected NamedQueryService getNamedQueryService()
    • setNamedQueryService

      public void setNamedQueryService(NamedQueryService namedQueryService)
    • getI18NService

      protected I18NService getI18NService()
    • setI18NService

      public void setI18NService(I18NService i18NService)