TypeAheadController@Deprecated public class BroadleafTypeAheadController extends org.broadleafcommerce.common.web.controller.BroadleafAbstractController
| Modifier and Type | Field and Description |
|---|---|
protected org.broadleafcommerce.core.catalog.dao.CategoryDao |
categoryDao
Deprecated.
|
protected org.broadleafcommerce.core.search.service.solr.SolrHelperService |
shs
Deprecated.
|
protected SolrTypeAheadService |
solrTypeAheadService
Deprecated.
|
| Constructor and Description |
|---|
BroadleafTypeAheadController()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getCategorySearchUrl(String query,
org.broadleafcommerce.core.catalog.domain.Category category)
Deprecated.
Creates the url for this query against the given
Category. |
protected TypeAheadDTO |
getCategoryTypeAheadDTO(String query,
org.broadleafcommerce.core.catalog.domain.Category category)
Deprecated.
Creates a
TypeAheadDTO for the given query and category. |
protected String |
getSearchUrl(String query)
Deprecated.
Creates the url for this query to the search results page.
|
protected TypeAheadDTO |
getTypeAheadDTO(String query,
String categoryName,
String url)
Deprecated.
Creates a
TypeAheadDTO for the query, categoryName, and url. |
List<TypeAheadDTO> |
typeAhead(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String query)
Deprecated.
|
protected SolrTypeAheadService solrTypeAheadService
protected org.broadleafcommerce.core.catalog.dao.CategoryDao categoryDao
protected org.broadleafcommerce.core.search.service.solr.SolrHelperService shs
public List<TypeAheadDTO> typeAhead(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String query)
protected TypeAheadDTO getCategoryTypeAheadDTO(String query, org.broadleafcommerce.core.catalog.domain.Category category)
TypeAheadDTO for the given query and category. This can be overridden to exclude certain categories by
returning null. If null is returned, no TypeAheadDTO is added.query - the query for this resultcategory - the category to search on for this resultprotected TypeAheadDTO getTypeAheadDTO(String query, String categoryName, String url)
TypeAheadDTO for the query, categoryName, and url.query - the query for this resultcategoryName - the name of the category to search inurl - the url this result links toprotected String getCategorySearchUrl(String query, org.broadleafcommerce.core.catalog.domain.Category category)
Category. This can be overridden to modify the url for a category
search type ahead.query - the query for the url, typically the 'q' parametercategory - the Category to build the url forCopyright © 2020. All rights reserved.