Class DefaultFacetSearchContext
java.lang.Object
de.hybris.platform.solrfacetsearch.search.context.impl.DefaultFacetSearchContext
- All Implemented Interfaces:
FacetSearchContext
Default implementation of
FacetSearchContext.-
Nested Class Summary
Nested classes/interfaces inherited from interface de.hybris.platform.solrfacetsearch.search.context.FacetSearchContext
FacetSearchContext.Status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFailureException(Exception exception) Returns aMapinstance that can be used to store attributes.Return list of available named sorts.Returns the facet search configuration.Returns all failure causing exceptions for thisFacetSearchContext.Returns the indexed type.Return current named sort.Returns the parent session catalog versions (the catalog versions that are in the session when this context is created).Returns a mutableMapthat can be used to store search hints.Returns the search query.Returns the search result.Returns the current status for thisFacetSearchContextvoidsetAvailableNamedSorts(List<IndexedTypeSort> availableNamedSorts) voidsetFacetSearchConfig(FacetSearchConfig facetSearchConfig) voidsetIndexedType(IndexedType indexedType) voidsetNamedSort(IndexedTypeSort namedSort) Sets current named sortIndexedTypeSort.voidsetParentSessionCatalogVersions(Collection<CatalogVersionModel> parentSessionCatalogVersions) voidsetSearchQuery(SearchQuery searchQuery) voidsetSearchResult(SearchResult searchResult) Sets the search result.voidsetStatus(FacetSearchContext.Status status)
-
Constructor Details
-
DefaultFacetSearchContext
public DefaultFacetSearchContext()
-
-
Method Details
-
getFacetSearchConfig
Description copied from interface:FacetSearchContextReturns the facet search configuration.- Specified by:
getFacetSearchConfigin interfaceFacetSearchContext- Returns:
- the facet search configuration
-
setFacetSearchConfig
-
getIndexedType
Description copied from interface:FacetSearchContextReturns the indexed type.- Specified by:
getIndexedTypein interfaceFacetSearchContext- Returns:
- the indexed type
-
setIndexedType
-
getSearchQuery
Description copied from interface:FacetSearchContextReturns the search query.- Specified by:
getSearchQueryin interfaceFacetSearchContext- Returns:
- the search query
-
setSearchQuery
-
getSearchResult
Description copied from interface:FacetSearchContextReturns the search result.- Specified by:
getSearchResultin interfaceFacetSearchContext- Returns:
- the search result
-
setSearchResult
Description copied from interface:FacetSearchContextSets the search result.- Specified by:
setSearchResultin interfaceFacetSearchContext
-
getParentSessionCatalogVersions
Description copied from interface:FacetSearchContextReturns the parent session catalog versions (the catalog versions that are in the session when this context is created).- Specified by:
getParentSessionCatalogVersionsin interfaceFacetSearchContext- Returns:
- the parent session catalog versions
-
setParentSessionCatalogVersions
public void setParentSessionCatalogVersions(Collection<CatalogVersionModel> parentSessionCatalogVersions) -
getSearchHints
Description copied from interface:FacetSearchContextReturns a mutableMapthat can be used to store search hints.- Specified by:
getSearchHintsin interfaceFacetSearchContext- Returns:
- the map containing the search hints
-
getStatus
Description copied from interface:FacetSearchContextReturns the current status for thisFacetSearchContext- Specified by:
getStatusin interfaceFacetSearchContext- Returns:
- the current status
-
setStatus
-
getAttributes
Description copied from interface:FacetSearchContextReturns aMapinstance that can be used to store attributes. The attributes are only valid for the duration of the search process.- Specified by:
getAttributesin interfaceFacetSearchContext- Returns:
- the map containing the attributes
-
addFailureException
-
getFailureExceptions
Description copied from interface:FacetSearchContextReturns all failure causing exceptions for thisFacetSearchContext.- Specified by:
getFailureExceptionsin interfaceFacetSearchContext
-
getAvailableNamedSorts
Description copied from interface:FacetSearchContextReturn list of available named sorts.- Specified by:
getAvailableNamedSortsin interfaceFacetSearchContext- Returns:
- List of
IndexedTypeSort
-
setAvailableNamedSorts
-
getNamedSort
Description copied from interface:FacetSearchContextReturn current named sort.- Specified by:
getNamedSortin interfaceFacetSearchContext- Returns:
- Current named sort
IndexedTypeSort
-
setNamedSort
Description copied from interface:FacetSearchContextSets current named sortIndexedTypeSort.- Specified by:
setNamedSortin interfaceFacetSearchContext
-