Interface FacetSearchContext
-
- All Known Implementing Classes:
DefaultFacetSearchContext
public interface FacetSearchContext
This interface represents a context valid for the duration of a search.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
FacetSearchContext.Status
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
getAttributes()
Returns aMap
instance that can be used to store attributes.java.util.List<IndexedTypeSort>
getAvailableNamedSorts()
Return list of available named sorts.FacetSearchConfig
getFacetSearchConfig()
Returns the facet search configuration.java.util.List<java.lang.Exception>
getFailureExceptions()
Returns all failure causing exceptions for thisFacetSearchContext
.IndexedType
getIndexedType()
Returns the indexed type.IndexedTypeSort
getNamedSort()
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 mutableMap
that can be used to store search hints.SearchQuery
getSearchQuery()
Returns the search query.SearchResult
getSearchResult()
Returns the search result.FacetSearchContext.Status
getStatus()
Returns the current status for thisFacetSearchContext
void
setNamedSort(IndexedTypeSort namedSort)
Sets current named sortIndexedTypeSort
.void
setSearchResult(SearchResult searchResult)
Sets the search result.
-
-
-
Method Detail
-
getFacetSearchConfig
FacetSearchConfig getFacetSearchConfig()
Returns the facet search configuration.- Returns:
- the facet search configuration
-
getIndexedType
IndexedType getIndexedType()
Returns the indexed type.- Returns:
- the indexed type
-
getSearchQuery
SearchQuery getSearchQuery()
Returns the search query.- Returns:
- the search query
-
getSearchResult
SearchResult getSearchResult()
Returns the search result.- Returns:
- the search result
-
setSearchResult
void setSearchResult(SearchResult searchResult)
Sets the search result.
-
getParentSessionCatalogVersions
java.util.Collection<CatalogVersionModel> getParentSessionCatalogVersions()
Returns the parent session catalog versions (the catalog versions that are in the session when this context is created).- Returns:
- the parent session catalog versions
-
getSearchHints
java.util.Map<java.lang.String,java.lang.String> getSearchHints()
Returns a mutableMap
that can be used to store search hints.- Returns:
- the map containing the search hints
-
getStatus
FacetSearchContext.Status getStatus()
Returns the current status for thisFacetSearchContext
- Returns:
- the current status
-
getFailureExceptions
java.util.List<java.lang.Exception> getFailureExceptions()
Returns all failure causing exceptions for thisFacetSearchContext
.
-
getAttributes
java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Returns aMap
instance that can be used to store attributes. The attributes are only valid for the duration of the search process.- Returns:
- the map containing the attributes
-
getAvailableNamedSorts
java.util.List<IndexedTypeSort> getAvailableNamedSorts()
Return list of available named sorts.- Returns:
- List of
IndexedTypeSort
-
getNamedSort
IndexedTypeSort getNamedSort()
Return current named sort.- Returns:
- Current named sort
IndexedTypeSort
-
setNamedSort
void setNamedSort(IndexedTypeSort namedSort)
Sets current named sortIndexedTypeSort
.
-
-