Class DefaultFacetSearchContext
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.search.context.impl.DefaultFacetSearchContext
-
- All Implemented Interfaces:
FacetSearchContext
public class DefaultFacetSearchContext extends java.lang.Object implements FacetSearchContext
Default implementation ofFacetSearchContext.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.hybris.platform.solrfacetsearch.search.context.FacetSearchContext
FacetSearchContext.Status
-
-
Constructor Summary
Constructors Constructor Description DefaultFacetSearchContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFailureException(java.lang.Exception exception)java.util.Map<java.lang.String,java.lang.Object>getAttributes()Returns aMapinstance that can be used to store attributes.java.util.List<IndexedTypeSort>getAvailableNamedSorts()Return list of available named sorts.FacetSearchConfiggetFacetSearchConfig()Returns the facet search configuration.java.util.List<java.lang.Exception>getFailureExceptions()Returns all failure causing exceptions for thisFacetSearchContext.IndexedTypegetIndexedType()Returns the indexed type.IndexedTypeSortgetNamedSort()Return current named sort.java.util.Collection<CatalogVersionModel>getParentSessionCatalogVersions()Returns the parent session catalog versions (the catalog versions that are in the session when this context is created).java.util.Map<java.lang.String,java.lang.String>getSearchHints()Returns a mutableMapthat can be used to store search hints.SearchQuerygetSearchQuery()Returns the search query.SearchResultgetSearchResult()Returns the search result.FacetSearchContext.StatusgetStatus()Returns the current status for thisFacetSearchContextvoidsetAvailableNamedSorts(java.util.List<IndexedTypeSort> availableNamedSorts)voidsetFacetSearchConfig(FacetSearchConfig facetSearchConfig)voidsetIndexedType(IndexedType indexedType)voidsetNamedSort(IndexedTypeSort namedSort)Sets current named sortIndexedTypeSort.voidsetParentSessionCatalogVersions(java.util.Collection<CatalogVersionModel> parentSessionCatalogVersions)voidsetSearchQuery(SearchQuery searchQuery)voidsetSearchResult(SearchResult searchResult)Sets the search result.voidsetStatus(FacetSearchContext.Status status)
-
-
-
Method Detail
-
getFacetSearchConfig
public FacetSearchConfig getFacetSearchConfig()
Description copied from interface:FacetSearchContextReturns the facet search configuration.- Specified by:
getFacetSearchConfigin interfaceFacetSearchContext- Returns:
- the facet search configuration
-
setFacetSearchConfig
public void setFacetSearchConfig(FacetSearchConfig facetSearchConfig)
-
getIndexedType
public IndexedType getIndexedType()
Description copied from interface:FacetSearchContextReturns the indexed type.- Specified by:
getIndexedTypein interfaceFacetSearchContext- Returns:
- the indexed type
-
setIndexedType
public void setIndexedType(IndexedType indexedType)
-
getSearchQuery
public SearchQuery getSearchQuery()
Description copied from interface:FacetSearchContextReturns the search query.- Specified by:
getSearchQueryin interfaceFacetSearchContext- Returns:
- the search query
-
setSearchQuery
public void setSearchQuery(SearchQuery searchQuery)
-
getSearchResult
public SearchResult getSearchResult()
Description copied from interface:FacetSearchContextReturns the search result.- Specified by:
getSearchResultin interfaceFacetSearchContext- Returns:
- the search result
-
setSearchResult
public void setSearchResult(SearchResult searchResult)
Description copied from interface:FacetSearchContextSets the search result.- Specified by:
setSearchResultin interfaceFacetSearchContext
-
getParentSessionCatalogVersions
public java.util.Collection<CatalogVersionModel> 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(java.util.Collection<CatalogVersionModel> parentSessionCatalogVersions)
-
getSearchHints
public java.util.Map<java.lang.String,java.lang.String> 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
public FacetSearchContext.Status getStatus()
Description copied from interface:FacetSearchContextReturns the current status for thisFacetSearchContext- Specified by:
getStatusin interfaceFacetSearchContext- Returns:
- the current status
-
setStatus
public void setStatus(FacetSearchContext.Status status)
-
getAttributes
public java.util.Map<java.lang.String,java.lang.Object> 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
public void addFailureException(java.lang.Exception exception)
-
getFailureExceptions
public java.util.List<java.lang.Exception> getFailureExceptions()
Description copied from interface:FacetSearchContextReturns all failure causing exceptions for thisFacetSearchContext.- Specified by:
getFailureExceptionsin interfaceFacetSearchContext
-
getAvailableNamedSorts
public java.util.List<IndexedTypeSort> getAvailableNamedSorts()
Description copied from interface:FacetSearchContextReturn list of available named sorts.- Specified by:
getAvailableNamedSortsin interfaceFacetSearchContext- Returns:
- List of
IndexedTypeSort
-
setAvailableNamedSorts
public void setAvailableNamedSorts(java.util.List<IndexedTypeSort> availableNamedSorts)
-
getNamedSort
public IndexedTypeSort getNamedSort()
Description copied from interface:FacetSearchContextReturn current named sort.- Specified by:
getNamedSortin interfaceFacetSearchContext- Returns:
- Current named sort
IndexedTypeSort
-
setNamedSort
public void setNamedSort(IndexedTypeSort namedSort)
Description copied from interface:FacetSearchContextSets current named sortIndexedTypeSort.- Specified by:
setNamedSortin interfaceFacetSearchContext
-
-