Class DefaultAsSearchProfileContext
- java.lang.Object
-
- de.hybris.platform.adaptivesearch.context.impl.DefaultAsSearchProfileContext
-
- All Implemented Interfaces:
AsSearchProfileContext
public class DefaultAsSearchProfileContext extends java.lang.Object implements AsSearchProfileContext
Default implementation ofAsSearchProfileContext.
-
-
Constructor Summary
Constructors Constructor Description DefaultAsSearchProfileContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>getAttributes()Returns aMapinstance that can be used to store attributes.java.util.List<CatalogVersionModel>getCatalogVersions()Returns the catalog versions.java.util.List<CategoryModel>getCategoryPath()Returns the category path.CurrencyModelgetCurrency()Returns the currency.java.lang.StringgetIndexConfiguration()Returns the index configuration.java.lang.StringgetIndexType()Returns the index type.java.util.List<AsKeyword>getKeywords()Returns the keywords.LanguageModelgetLanguage()Returns the language.java.util.Map<java.lang.String,java.util.List<java.lang.String>>getQualifiers()Returns aMapinstance with the qualifiers.java.lang.StringgetQuery()Returns the query.java.util.List<CatalogVersionModel>getSessionCatalogVersions()Returns the session catalog versions.voidsetCatalogVersions(java.util.List<CatalogVersionModel> catalogVersions)voidsetCategoryPath(java.util.List<CategoryModel> categoryPath)voidsetCurrency(CurrencyModel currency)voidsetIndexConfiguration(java.lang.String indexConfiguration)voidsetIndexType(java.lang.String indexType)voidsetKeywords(java.util.List<AsKeyword> keywords)Sets the keywords.voidsetLanguage(LanguageModel language)voidsetQuery(java.lang.String query)Sets the query.voidsetSessionCatalogVersions(java.util.List<CatalogVersionModel> sessionCatalogVersions)
-
-
-
Method Detail
-
getIndexConfiguration
public java.lang.String getIndexConfiguration()
Description copied from interface:AsSearchProfileContextReturns the index configuration.- Specified by:
getIndexConfigurationin interfaceAsSearchProfileContext- Returns:
- the index configuration
-
setIndexConfiguration
public void setIndexConfiguration(java.lang.String indexConfiguration)
-
getIndexType
public java.lang.String getIndexType()
Description copied from interface:AsSearchProfileContextReturns the index type.- Specified by:
getIndexTypein interfaceAsSearchProfileContext- Returns:
- the index type
-
setIndexType
public void setIndexType(java.lang.String indexType)
-
getCatalogVersions
public java.util.List<CatalogVersionModel> getCatalogVersions()
Description copied from interface:AsSearchProfileContextReturns the catalog versions.- Specified by:
getCatalogVersionsin interfaceAsSearchProfileContext- Returns:
- the catalog versions
-
setCatalogVersions
public void setCatalogVersions(java.util.List<CatalogVersionModel> catalogVersions)
-
getSessionCatalogVersions
public java.util.List<CatalogVersionModel> 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
public void setSessionCatalogVersions(java.util.List<CatalogVersionModel> sessionCatalogVersions)
-
getCategoryPath
public java.util.List<CategoryModel> getCategoryPath()
Description copied from interface:AsSearchProfileContextReturns the category path.- Specified by:
getCategoryPathin interfaceAsSearchProfileContext- Returns:
- the category path
-
setCategoryPath
public void setCategoryPath(java.util.List<CategoryModel> categoryPath)
-
getLanguage
public LanguageModel getLanguage()
Description copied from interface:AsSearchProfileContextReturns the language.- Specified by:
getLanguagein interfaceAsSearchProfileContext- Returns:
- the language
-
setLanguage
public void setLanguage(LanguageModel language)
-
getCurrency
public CurrencyModel getCurrency()
Description copied from interface:AsSearchProfileContextReturns the currency.- Specified by:
getCurrencyin interfaceAsSearchProfileContext- Returns:
- the currency
-
setCurrency
public void setCurrency(CurrencyModel currency)
-
getKeywords
public java.util.List<AsKeyword> getKeywords()
Description copied from interface:AsSearchProfileContextReturns the keywords.- Specified by:
getKeywordsin interfaceAsSearchProfileContext- Returns:
- the keywords
-
setKeywords
public void setKeywords(java.util.List<AsKeyword> keywords)
Description copied from interface:AsSearchProfileContextSets the keywords.- Specified by:
setKeywordsin interfaceAsSearchProfileContext- Parameters:
keywords- - the keywords
-
getQuery
public java.lang.String getQuery()
Description copied from interface:AsSearchProfileContextReturns the query.- Specified by:
getQueryin interfaceAsSearchProfileContext- Returns:
- the query
-
setQuery
public void setQuery(java.lang.String query)
Description copied from interface:AsSearchProfileContextSets the query.- Specified by:
setQueryin interfaceAsSearchProfileContext- Parameters:
query- - the query
-
getQualifiers
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getQualifiers()
Description copied from interface:AsSearchProfileContextReturns aMapinstance with the qualifiers.- Specified by:
getQualifiersin interfaceAsSearchProfileContext- Returns:
- the map containing the attributes
-
getAttributes
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Description copied from interface:AsSearchProfileContextReturns aMapinstance that can be used to store attributes.- Specified by:
getAttributesin interfaceAsSearchProfileContext- Returns:
- the map containing the attributes
-
-