Class SearchResultsImpl
- java.lang.Object
-
- com.adobe.cq.commerce.core.components.internal.datalayer.DataLayerComponent
-
- com.adobe.cq.commerce.core.components.internal.models.v1.productcollection.ProductCollectionImpl
-
- com.adobe.cq.commerce.core.components.internal.models.v1.searchresults.SearchResultsImpl
-
- All Implemented Interfaces:
ProductCollection
,SearchResults
@Model(adaptables=org.apache.sling.api.SlingHttpServletRequest.class, adapters=SearchResults.class, resourceType="core/cif/components/commerce/searchresults") public class SearchResultsImpl extends ProductCollectionImpl implements SearchResults
Concrete implementation of theSearchResults
Sling Model API
-
-
Field Summary
-
Fields inherited from class com.adobe.cq.commerce.core.components.internal.models.v1.productcollection.ProductCollectionImpl
currentPage, currentStyle, externalizer, LOAD_CLIENT_PRICE_DEFAULT, loadClientPrice, navPageSize, PAGINATION_TYPE_DEFAULT, paginationType, productPage, properties, request, searchOptions, searchResultsService, searchResultsSet, urlProvider
-
Fields inherited from class com.adobe.cq.commerce.core.components.internal.datalayer.DataLayerComponent
ID_SEPARATOR, resource
-
Fields inherited from interface com.adobe.cq.commerce.core.components.models.productcollection.ProductCollection
PN_LOAD_CLIENT_PRICE, PN_PAGE_SIZE, PN_PAGINATION_TYPE
-
-
Constructor Summary
Constructors Constructor Description SearchResultsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,String>
createFilterMap(Map<String,String[]> parameterMap)
Collection<ProductListItem>
getProducts()
Returns the product list's items collection, asProductListItem
s elements.SearchResultsSet
getSearchResultsSet()
Get the search result set.protected void
initModel()
-
Methods inherited from class com.adobe.cq.commerce.core.components.internal.models.v1.productcollection.ProductCollectionImpl
calculateCurrentPageCursor, getPaginationType, loadClientPrice
-
Methods inherited from class com.adobe.cq.commerce.core.components.internal.datalayer.DataLayerComponent
generateId, getComponentData, getData, getDataLayerAssetResource, getDataLayerAssets, getDataLayerCategories, getDataLayerCurrency, getDataLayerDescription, getDataLayerLanguage, getDataLayerLinkUrl, getDataLayerPrice, getDataLayerShownItems, getDataLayerSKU, getDataLayerTags, getDataLayerTemplatePath, getDataLayerText, getDataLayerTitle, getDataLayerType, getDataLayerUrl, getId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adobe.cq.commerce.core.components.models.productcollection.ProductCollection
getPaginationType, loadClientPrice
-
-
-
-
Method Detail
-
initModel
@PostConstruct protected void initModel()
-
createFilterMap
protected Map<String,String> createFilterMap(Map<String,String[]> parameterMap)
- Overrides:
createFilterMap
in classProductCollectionImpl
-
getProducts
@Nonnull public Collection<ProductListItem> getProducts()
Description copied from interface:ProductCollection
Returns the product list's items collection, asProductListItem
s elements.- Specified by:
getProducts
in interfaceProductCollection
- Overrides:
getProducts
in classProductCollectionImpl
- Returns:
Collection
ofProductListItem
s
-
getSearchResultsSet
@Nonnull public SearchResultsSet getSearchResultsSet()
Description copied from interface:ProductCollection
Get the search result set. This is the actual search result data.- Specified by:
getSearchResultsSet
in interfaceProductCollection
- Overrides:
getSearchResultsSet
in classProductCollectionImpl
- Returns:
- the result of the search
-
-