Class DefaultAsSearchProfileContext
java.lang.Object
de.hybris.platform.adaptivesearch.context.impl.DefaultAsSearchProfileContext
- All Implemented Interfaces:
AsSearchProfileContext
Default implementation of
AsSearchProfileContext.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns aMapinstance that can be used to store attributes.Returns the catalog versions.Returns the category path.Returns the currency.Returns the index configuration.Returns the index type.Returns the keywords.Returns the language.Returns aMapinstance with the qualifiers.getQuery()Returns the query.Returns the query contexts.Returns the session catalog versions.voidsetCatalogVersions(List<CatalogVersionModel> catalogVersions) Deprecated, for removal: This API element is subject to removal in a future version.voidsetCategoryPath(List<CategoryModel> categoryPath) Deprecated, for removal: This API element is subject to removal in a future version.voidsetCurrency(CurrencyModel currency) Deprecated, for removal: This API element is subject to removal in a future version.voidsetIndexConfiguration(String indexConfiguration) Deprecated, for removal: This API element is subject to removal in a future version.voidsetIndexType(String indexType) Deprecated, for removal: This API element is subject to removal in a future version.voidsetKeywords(List<AsKeyword> keywords) Deprecated, for removal: This API element is subject to removal in a future version.voidsetLanguage(LanguageModel language) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidsetQueryContexts(List<String> queryContexts) Deprecated, for removal: This API element is subject to removal in a future version.voidsetSessionCatalogVersions(List<CatalogVersionModel> sessionCatalogVersions) Deprecated, for removal: This API element is subject to removal in a future version.Replaced by {@link DefaultAsSearchProfileContextBuilder#withSessionCatalogVersions(List))}.
-
Constructor Details
-
DefaultAsSearchProfileContext
public DefaultAsSearchProfileContext()
-
-
Method Details
-
getQueryContexts
Description copied from interface:AsSearchProfileContextReturns the query contexts.- Specified by:
getQueryContextsin interfaceAsSearchProfileContext- Returns:
- the query contexts
-
setQueryContexts
Deprecated, for removal: This API element is subject to removal in a future version. -
getIndexConfiguration
Description copied from interface:AsSearchProfileContextReturns the index configuration.- Specified by:
getIndexConfigurationin interfaceAsSearchProfileContext- Returns:
- the index configuration
-
setIndexConfiguration
@Deprecated(since="2205", forRemoval=true) public void setIndexConfiguration(String indexConfiguration) Deprecated, for removal: This API element is subject to removal in a future version. -
getIndexType
Description copied from interface:AsSearchProfileContextReturns the index type.- Specified by:
getIndexTypein interfaceAsSearchProfileContext- Returns:
- the index type
-
setIndexType
Deprecated, for removal: This API element is subject to removal in a future version. -
getCatalogVersions
Description copied from interface:AsSearchProfileContextReturns the catalog versions.- Specified by:
getCatalogVersionsin interfaceAsSearchProfileContext- Returns:
- the catalog versions
-
setCatalogVersions
@Deprecated(since="2205", forRemoval=true) public void setCatalogVersions(List<CatalogVersionModel> catalogVersions) Deprecated, for removal: This API element is subject to removal in a future version. -
getSessionCatalogVersions
Description copied from interface:AsSearchProfileContextReturns the session catalog versions. Sometimes the search query runs in a local session context which sets the catalog versions in the session to the ones used in the search query, for this reason this method should be used instead ofCatalogVersionService.getSessionCatalogVersions().- Specified by:
getSessionCatalogVersionsin interfaceAsSearchProfileContext- Returns:
- the session catalog versions
-
setSessionCatalogVersions
@Deprecated(since="2205", forRemoval=true) public void setSessionCatalogVersions(List<CatalogVersionModel> sessionCatalogVersions) Deprecated, for removal: This API element is subject to removal in a future version.Replaced by {@link DefaultAsSearchProfileContextBuilder#withSessionCatalogVersions(List))}. -
getCategoryPath
Description copied from interface:AsSearchProfileContextReturns the category path.- Specified by:
getCategoryPathin interfaceAsSearchProfileContext- Returns:
- the category path
-
setCategoryPath
@Deprecated(since="2205", forRemoval=true) public void setCategoryPath(List<CategoryModel> categoryPath) Deprecated, for removal: This API element is subject to removal in a future version. -
getLanguage
Description copied from interface:AsSearchProfileContextReturns the language.- Specified by:
getLanguagein interfaceAsSearchProfileContext- Returns:
- the language
-
setLanguage
Deprecated, for removal: This API element is subject to removal in a future version. -
getCurrency
Description copied from interface:AsSearchProfileContextReturns the currency.- Specified by:
getCurrencyin interfaceAsSearchProfileContext- Returns:
- the currency
-
setCurrency
Deprecated, for removal: This API element is subject to removal in a future version. -
getKeywords
Description copied from interface:AsSearchProfileContextReturns the keywords.- Specified by:
getKeywordsin interfaceAsSearchProfileContext- Returns:
- the keywords
-
setKeywords
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AsSearchProfileContextSets the keywords.- Specified by:
setKeywordsin interfaceAsSearchProfileContext- Parameters:
keywords- - the keywords
-
getQuery
Description copied from interface:AsSearchProfileContextReturns the query.- Specified by:
getQueryin interfaceAsSearchProfileContext- Returns:
- the query
-
setQuery
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AsSearchProfileContextSets the query.- Specified by:
setQueryin interfaceAsSearchProfileContext- Parameters:
query- - the query
-
getQualifiers
Description copied from interface:AsSearchProfileContextReturns aMapinstance with the qualifiers.- Specified by:
getQualifiersin interfaceAsSearchProfileContext- Returns:
- the map containing the attributes
-
getAttributes
Description copied from interface:AsSearchProfileContextReturns aMapinstance that can be used to store attributes.- Specified by:
getAttributesin interfaceAsSearchProfileContext- Returns:
- the map containing the attributes
-
builder
-
DefaultAsSearchProfileContext.DefaultAsSearchProfileContextBuilder.withCatalogVersions(List).