public class MockAsSearchProvider extends java.lang.Object implements AsSearchProvider
AsSearchProvider| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
INDEX_CONFIGURATION |
protected static java.lang.String |
INDEX_PROPERTY_CODE1 |
protected static java.lang.String |
INDEX_PROPERTY_CODE2 |
protected static java.lang.String |
INDEX_PROPERTY_CODE3 |
protected static java.lang.String |
INDEX_PROPERTY_CODE4 |
protected static java.lang.String |
INDEX_TYPE |
protected static java.lang.String |
INDEX_TYPE_NO_CATALOG_VERSION |
protected static java.lang.String |
INDEX_TYPE1 |
protected static java.lang.String |
INDEX_TYPE2 |
protected static java.lang.String |
SCORE_EXPRESSION |
| Constructor and Description |
|---|
MockAsSearchProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
java.util.Optional<AsIndexConfigurationData> |
getIndexConfigurationForCode(java.lang.String code)
Returns the index configuration for the provided code.
|
java.util.List<AsIndexConfigurationData> |
getIndexConfigurations()
Returns a list of index configurations.
|
java.util.List<AsIndexPropertyData> |
getIndexProperties(java.lang.String indexType)
Returns a list of index properties for a given index type.
|
java.util.Optional<AsIndexPropertyData> |
getIndexPropertyForCode(java.lang.String indexType,
java.lang.String code)
Returns the index property for the provided code.
|
java.util.Optional<AsIndexTypeData> |
getIndexTypeForCode(java.lang.String code)
Returns the index type for the provided code.
|
java.util.List<AsIndexTypeData> |
getIndexTypes()
Returns a list of index types.
|
java.util.List<AsIndexTypeData> |
getIndexTypes(java.lang.String indexConfiguration)
Returns a list of index types for a given index configuration.
|
java.util.List<CatalogVersionModel> |
getSupportedCatalogVersions(java.lang.String indexConfiguration,
java.lang.String indexType)
Returns a list of catalog versions for a given index configuration and type.
|
java.util.List<CurrencyModel> |
getSupportedCurrencies(java.lang.String indexConfiguration,
java.lang.String indexType)
Returns a list of currencies for a given index configuration and type.
|
java.util.List<AsIndexPropertyData> |
getSupportedFacetIndexProperties(java.lang.String indexType)
Returns a list of index properties for a given index type that can be used for facets.
|
java.util.List<LanguageModel> |
getSupportedLanguages(java.lang.String indexConfiguration,
java.lang.String indexType)
Returns a list of languages for a given index configuration and type.
|
java.util.List<AsExpressionData> |
getSupportedSortExpressions(java.lang.String indexType)
Returns a list of expressions for a given index type that can be used for sorts.
|
boolean |
isValidFacetIndexProperty(java.lang.String indexType,
java.lang.String code)
Checks is a given index property can be used for facets.
|
boolean |
isValidSortExpression(java.lang.String indexType,
java.lang.String expression)
Checks is a given expression can be used for facets.
|
AsSearchResultData |
search(AsSearchProfileContext context,
AsSearchQueryData searchQuery)
Performs a search query.
|
protected static final java.lang.String INDEX_CONFIGURATION
protected static final java.lang.String INDEX_TYPE
protected static final java.lang.String INDEX_TYPE1
protected static final java.lang.String INDEX_TYPE2
protected static final java.lang.String INDEX_TYPE_NO_CATALOG_VERSION
protected static final java.lang.String SCORE_EXPRESSION
protected static final java.lang.String INDEX_PROPERTY_CODE1
protected static final java.lang.String INDEX_PROPERTY_CODE2
protected static final java.lang.String INDEX_PROPERTY_CODE3
protected static final java.lang.String INDEX_PROPERTY_CODE4
public void afterPropertiesSet()
public java.util.List<AsIndexConfigurationData> getIndexConfigurations()
AsSearchProvidergetIndexConfigurations in interface AsSearchProviderpublic java.util.Optional<AsIndexConfigurationData> getIndexConfigurationForCode(java.lang.String code)
AsSearchProvidergetIndexConfigurationForCode in interface AsSearchProvidercode - - the index configuration codepublic java.util.List<AsIndexTypeData> getIndexTypes()
AsSearchProvidergetIndexTypes in interface AsSearchProviderpublic java.util.List<AsIndexTypeData> getIndexTypes(java.lang.String indexConfiguration)
AsSearchProvidergetIndexTypes in interface AsSearchProviderindexConfiguration - - the index configuration codepublic java.util.Optional<AsIndexTypeData> getIndexTypeForCode(java.lang.String code)
AsSearchProvidergetIndexTypeForCode in interface AsSearchProvidercode - - the index type codepublic java.util.List<AsIndexPropertyData> getIndexProperties(java.lang.String indexType)
AsSearchProvidergetIndexProperties in interface AsSearchProviderindexType - - the index type codepublic java.util.Optional<AsIndexPropertyData> getIndexPropertyForCode(java.lang.String indexType, java.lang.String code)
AsSearchProvidergetIndexPropertyForCode in interface AsSearchProvidercode - - the index property codepublic java.util.List<CatalogVersionModel> getSupportedCatalogVersions(java.lang.String indexConfiguration, java.lang.String indexType)
AsSearchProvidergetSupportedCatalogVersions in interface AsSearchProviderindexConfiguration - - the index configurationindexType - - the index typepublic java.util.List<LanguageModel> getSupportedLanguages(java.lang.String indexConfiguration, java.lang.String indexType)
AsSearchProvidergetSupportedLanguages in interface AsSearchProviderindexConfiguration - - the index configurationindexType - - the index typepublic java.util.List<CurrencyModel> getSupportedCurrencies(java.lang.String indexConfiguration, java.lang.String indexType)
AsSearchProvidergetSupportedCurrencies in interface AsSearchProviderindexConfiguration - - the index configurationindexType - - the index typepublic java.util.List<AsIndexPropertyData> getSupportedFacetIndexProperties(java.lang.String indexType)
AsSearchProvidergetSupportedFacetIndexProperties in interface AsSearchProviderindexType - - the index type codepublic boolean isValidFacetIndexProperty(java.lang.String indexType,
java.lang.String code)
AsSearchProviderisValidFacetIndexProperty in interface AsSearchProviderindexType - - the index type codecode - - the code of the index propertytrue if the index property can be used for facets, false otherwisepublic java.util.List<AsExpressionData> getSupportedSortExpressions(java.lang.String indexType)
AsSearchProvidergetSupportedSortExpressions in interface AsSearchProviderindexType - - the index type codepublic boolean isValidSortExpression(java.lang.String indexType,
java.lang.String expression)
AsSearchProviderisValidSortExpression in interface AsSearchProviderindexType - - the index type codeexpression - - the sort expressiontrue if expression can be used for sorts, false otherwisepublic AsSearchResultData search(AsSearchProfileContext context, AsSearchQueryData searchQuery) throws AsException
AsSearchProvidersearch in interface AsSearchProvidercontext - - the search profile contextsearchQuery - - the search queryAsException - if and exception occurs during the searchCopyright © 2018 SAP SE. All Rights Reserved.