public class DefaultFacetSearchContext extends java.lang.Object implements FacetSearchContext
FacetSearchContext.FacetSearchContext.Status| Constructor and Description |
|---|
DefaultFacetSearchContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFailureException(java.lang.Exception exception) |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Returns a
Map 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 this
FacetSearchContext. |
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 mutable
Map 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 this
FacetSearchContext |
void |
setAvailableNamedSorts(java.util.List<IndexedTypeSort> availableNamedSorts) |
void |
setFacetSearchConfig(FacetSearchConfig facetSearchConfig) |
void |
setIndexedType(IndexedType indexedType) |
void |
setNamedSort(IndexedTypeSort namedSort)
Sets current named sort
IndexedTypeSort. |
void |
setParentSessionCatalogVersions(java.util.Collection<CatalogVersionModel> parentSessionCatalogVersions) |
void |
setSearchQuery(SearchQuery searchQuery) |
void |
setSearchResult(SearchResult searchResult)
Sets the search result.
|
void |
setStatus(FacetSearchContext.Status status) |
public FacetSearchConfig getFacetSearchConfig()
FacetSearchContextgetFacetSearchConfig in interface FacetSearchContextpublic void setFacetSearchConfig(FacetSearchConfig facetSearchConfig)
public IndexedType getIndexedType()
FacetSearchContextgetIndexedType in interface FacetSearchContextpublic void setIndexedType(IndexedType indexedType)
public SearchQuery getSearchQuery()
FacetSearchContextgetSearchQuery in interface FacetSearchContextpublic void setSearchQuery(SearchQuery searchQuery)
public SearchResult getSearchResult()
FacetSearchContextgetSearchResult in interface FacetSearchContextpublic void setSearchResult(SearchResult searchResult)
FacetSearchContextsetSearchResult in interface FacetSearchContextpublic java.util.Collection<CatalogVersionModel> getParentSessionCatalogVersions()
FacetSearchContextgetParentSessionCatalogVersions in interface FacetSearchContextpublic void setParentSessionCatalogVersions(java.util.Collection<CatalogVersionModel> parentSessionCatalogVersions)
public java.util.Map<java.lang.String,java.lang.String> getSearchHints()
FacetSearchContextMap that can be used to store search hints.getSearchHints in interface FacetSearchContextpublic FacetSearchContext.Status getStatus()
FacetSearchContextFacetSearchContextgetStatus in interface FacetSearchContextpublic void setStatus(FacetSearchContext.Status status)
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
FacetSearchContextMap instance that can be used to store attributes. The attributes are only valid for the duration
of the search process.getAttributes in interface FacetSearchContextpublic void addFailureException(java.lang.Exception exception)
public java.util.List<java.lang.Exception> getFailureExceptions()
FacetSearchContextFacetSearchContext.getFailureExceptions in interface FacetSearchContextpublic java.util.List<IndexedTypeSort> getAvailableNamedSorts()
FacetSearchContextgetAvailableNamedSorts in interface FacetSearchContextIndexedTypeSortpublic void setAvailableNamedSorts(java.util.List<IndexedTypeSort> availableNamedSorts)
public IndexedTypeSort getNamedSort()
FacetSearchContextgetNamedSort in interface FacetSearchContextIndexedTypeSortpublic void setNamedSort(IndexedTypeSort namedSort)
FacetSearchContextIndexedTypeSort.setNamedSort in interface FacetSearchContextCopyright © 2018 SAP SE. All Rights Reserved.