Class DefaultProductCategorySearchService

    • Field Detail

      • NAMED_QUERY_CATEGORY_SEARCH_BY_TEXT

        public static final java.lang.String NAMED_QUERY_CATEGORY_SEARCH_BY_TEXT
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultProductCategorySearchService

        public DefaultProductCategorySearchService()
    • Method Detail

      • findProductCategories

        public SearchResult<CategoryModel> findProductCategories​(java.lang.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.
        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​(java.lang.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
      • setNamedQueryService

        public void setNamedQueryService​(NamedQueryService namedQueryService)