Interface AsSearchProfileContext
- All Known Implementing Classes:
DefaultAsSearchProfileContext
public interface AsSearchProfileContext
This interface represents a context used for search profile related operations.
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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.voidsetKeywords(List<AsKeyword> keywords) Sets the keywords.voidSets the query.
-
Method Details
-
getQueryContexts
Returns the query contexts.- Returns:
- the query contexts
-
getIndexConfiguration
String getIndexConfiguration()Returns the index configuration.- Returns:
- the index configuration
-
getIndexType
String getIndexType()Returns the index type.- Returns:
- the index type
-
getCatalogVersions
List<CatalogVersionModel> getCatalogVersions()Returns the catalog versions.- Returns:
- the catalog versions
-
getSessionCatalogVersions
List<CatalogVersionModel> getSessionCatalogVersions()Returns 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().- Returns:
- the session catalog versions
-
getCategoryPath
List<CategoryModel> getCategoryPath()Returns the category path.- Returns:
- the category path
-
getLanguage
LanguageModel getLanguage()Returns the language.- Returns:
- the language
-
getCurrency
CurrencyModel getCurrency()Returns the currency.- Returns:
- the currency
-
getKeywords
Returns the keywords.- Returns:
- the keywords
-
setKeywords
Sets the keywords.- Parameters:
keywords- - the keywords
-
getQuery
String getQuery()Returns the query.- Returns:
- the query
-
setQuery
Sets the query.- Parameters:
query- - the query
-
getQualifiers
Returns aMapinstance with the qualifiers.- Returns:
- the map containing the attributes
-
getAttributes
Returns aMapinstance that can be used to store attributes.- Returns:
- the map containing the attributes
-