Class DefaultB2BFlexibleSearchProductSearchFacade<ITEM extends ProductData>
java.lang.Object
de.hybris.platform.b2bacceleratorfacades.search.impl.DefaultB2BFlexibleSearchProductSearchFacade<ITEM>
- Type Parameters:
ITEM- type of item to be searched that extendsProductData.
- All Implemented Interfaces:
SearchFacade<ProductData,ProductSearchStateData>
public class DefaultB2BFlexibleSearchProductSearchFacade<ITEM extends ProductData>
extends Object
implements SearchFacade<ProductData,ProductSearchStateData>
Default implementation of Search Facade to B2B FlexibleSearch Product Search.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautocomplete(ProductSearchStateData searchState) Get the auto complete suggestions for the provided input.protected B2BProductServiceprotected Converter<SearchPageData,ProductSearchPageData> protected Populator<Object,ProductSearchPageData<SearchStateData, ProductData>> search(ProductSearchStateData searchState, PageableData pageableData) Searches for the ITEM's based on the search state.voidsetB2bProductService(B2BProductService b2bProductService) voidsetFlexibleSearchConverter(Converter<SearchPageData, ProductSearchPageData> flexibleSearchConverter) voidsetProductSearchPageVariantsPopulator(Populator<Object, ProductSearchPageData<SearchStateData, ProductData>> productSearchPageVariantsPopulator) splitSkusAsList(String skus)
-
Constructor Details
-
DefaultB2BFlexibleSearchProductSearchFacade
public DefaultB2BFlexibleSearchProductSearchFacade()
-
-
Method Details
-
search
public ProductSearchPageData<SearchStateData,ProductData> search(ProductSearchStateData searchState, PageableData pageableData) Description copied from interface:SearchFacadeSearches for the ITEM's based on the search state. The query object allows more complex queries using facet selection. The SearchStateData must have been obtained from the results of a call to#textSearch(String).- Specified by:
searchin interfaceSearchFacade<ProductData,ProductSearchStateData> - Parameters:
searchState- the search query objectpageableData- the page to return- Returns:
- the search results
-
autocomplete
public List<AutocompleteSuggestionData> autocomplete(ProductSearchStateData searchState) throws org.apache.commons.lang.NotImplementedException Description copied from interface:SearchFacadeGet the auto complete suggestions for the provided input.- Specified by:
autocompletein interfaceSearchFacade<ProductData,ProductSearchStateData> - Parameters:
searchState- the search query object- Returns:
- a list of suggested search terms
- Throws:
org.apache.commons.lang.NotImplementedException
-
splitSkusAsList
-
getFlexibleSearchConverter
-
setFlexibleSearchConverter
public void setFlexibleSearchConverter(Converter<SearchPageData, ProductSearchPageData> flexibleSearchConverter) -
setB2bProductService
-
getB2bProductService
-
setProductSearchPageVariantsPopulator
public void setProductSearchPageVariantsPopulator(Populator<Object, ProductSearchPageData<SearchStateData, ProductData>> productSearchPageVariantsPopulator) -
getProductSearchPageVariantsPopulator
protected Populator<Object,ProductSearchPageData<SearchStateData, getProductSearchPageVariantsPopulator()ProductData>>
-