Class DefaultSnCommonConfigurationService
java.lang.Object
de.hybris.platform.searchservices.admin.service.impl.DefaultSnCommonConfigurationService
- All Implemented Interfaces:
SnCommonConfigurationService
public class DefaultSnCommonConfigurationService
extends Object
implements SnCommonConfigurationService
Default implementation of
SnCommonConfigurationService.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanExportConfiguration(String indexConfigurationId) Returns whether the index configuration and everything associated can be exported to the search provider.protected SnExpressionInfocreateExpression(SnField field) protected SnExpressionInfoprotected SnExpressionInfovoidexportConfiguration(String indexConfigurationId) Exports the index configuration and everything associated to the search provider.getCatalogVersions(String indexTypeId) Returns the catalog versions for the given index type.getCurrencies(String indexTypeId) Returns the currencies for the given index type.getFacetExpressions(String indexTypeId) Returns the valid facet expressions.getGroupExpressions(String indexTypeId) Returns the valid group expressions.getLanguages(String indexTypeId) Returns the languages for the given index type.getSortExpressions(String indexTypeId) Returns the valid sort expressions.Returns the user for the given index type.booleanisValidFacetExpression(String indexTypeId, String expression) Checks if a given expression is a valid facet expression.protected booleanisValidFacetField(SnField field) booleanisValidGroupExpression(String indexTypeId, String expression) Checks if a given expression is a valid group expression.protected booleanisValidGroupField(SnField field) booleanisValidSortExpression(String indexTypeId, String expression) Checks if a given expression is a valid sort expression.protected booleanisValidSortField(SnField field) voidsetCatalogService(CatalogService catalogService) voidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetCommonI18NService(CommonI18NService commonI18NService) voidsetSnFieldTypeRegistry(SnFieldTypeRegistry snFieldTypeRegistry) voidsetSnIndexConfigurationService(SnIndexConfigurationService snIndexConfigurationService) voidsetSnIndexTypeService(SnIndexTypeService snIndexTypeService) voidsetSnSearchProviderFactory(SnSearchProviderFactory snSearchProviderFactory) voidsetSnSessionService(SnSessionService snSessionService) voidsetSnSynonymDictionaryService(SnSynonymDictionaryService snSynonymDictionaryService) voidsetUserService(UserService userService)
-
Field Details
-
INDEX_TYPE_ID_PARAM
- See Also:
-
EXPRESSION_PARAM
- See Also:
-
-
Constructor Details
-
DefaultSnCommonConfigurationService
public DefaultSnCommonConfigurationService()
-
-
Method Details
-
getUser
Description copied from interface:SnCommonConfigurationServiceReturns the user for the given index type.- Specified by:
getUserin interfaceSnCommonConfigurationService- Parameters:
indexTypeId- - the index type- Returns:
- the user
-
getLanguages
Description copied from interface:SnCommonConfigurationServiceReturns the languages for the given index type.- Specified by:
getLanguagesin interfaceSnCommonConfigurationService- Parameters:
indexTypeId- - the index type- Returns:
- the languages
-
getCurrencies
Description copied from interface:SnCommonConfigurationServiceReturns the currencies for the given index type.- Specified by:
getCurrenciesin interfaceSnCommonConfigurationService- Parameters:
indexTypeId- - the index type- Returns:
- the currencies
-
getCatalogVersions
Description copied from interface:SnCommonConfigurationServiceReturns the catalog versions for the given index type.- Specified by:
getCatalogVersionsin interfaceSnCommonConfigurationService- Parameters:
indexTypeId- - the index type- Returns:
- the catalog versions
-
getFacetExpressions
Description copied from interface:SnCommonConfigurationServiceReturns the valid facet expressions.- Specified by:
getFacetExpressionsin interfaceSnCommonConfigurationService- Parameters:
indexTypeId- - the index type- Returns:
- the facet expressions
-
isValidFacetExpression
Description copied from interface:SnCommonConfigurationServiceChecks if a given expression is a valid facet expression.- Specified by:
isValidFacetExpressionin interfaceSnCommonConfigurationService- Parameters:
indexTypeId- - the index typeexpression- - the expression- Returns:
trueif it is a valid facet expression,falseotherwise
-
isValidFacetField
-
getSortExpressions
Description copied from interface:SnCommonConfigurationServiceReturns the valid sort expressions.- Specified by:
getSortExpressionsin interfaceSnCommonConfigurationService- Parameters:
indexTypeId- - the index type- Returns:
- the sort expressions
-
isValidSortExpression
Description copied from interface:SnCommonConfigurationServiceChecks if a given expression is a valid sort expression.- Specified by:
isValidSortExpressionin interfaceSnCommonConfigurationService- Parameters:
indexTypeId- - the index typeexpression- - the expression- Returns:
trueif it is a valid sort expression,falseotherwise
-
isValidSortField
-
getGroupExpressions
Description copied from interface:SnCommonConfigurationServiceReturns the valid group expressions.- Specified by:
getGroupExpressionsin interfaceSnCommonConfigurationService- Parameters:
indexTypeId- - the index type- Returns:
- the group expressions
-
isValidGroupExpression
Description copied from interface:SnCommonConfigurationServiceChecks if a given expression is a valid group expression.- Specified by:
isValidGroupExpressionin interfaceSnCommonConfigurationService- Parameters:
indexTypeId- - the index typeexpression- - the expression- Returns:
trueif it is a valid group expression,falseotherwise
-
isValidGroupField
-
createExpression
-
createScoreExpression
-
createIdExpression
-
canExportConfiguration
Description copied from interface:SnCommonConfigurationServiceReturns whether the index configuration and everything associated can be exported to the search provider.- Specified by:
canExportConfigurationin interfaceSnCommonConfigurationService- Parameters:
indexConfigurationId- - the index configuration id- Returns:
trueif the configuration can be exported,falseotherwise
-
exportConfiguration
Description copied from interface:SnCommonConfigurationServiceExports the index configuration and everything associated to the search provider.- Specified by:
exportConfigurationin interfaceSnCommonConfigurationService- Parameters:
indexConfigurationId- - the index configuration id- Throws:
SnException- if an error occurs
-
getUserService
-
setUserService
-
getCommonI18NService
-
setCommonI18NService
-
getCatalogService
-
setCatalogService
-
getCatalogVersionService
-
setCatalogVersionService
-
getSnSessionService
-
setSnSessionService
-
getSnSynonymDictionaryService
-
setSnSynonymDictionaryService
-
getSnIndexConfigurationService
-
setSnIndexConfigurationService
-
getSnIndexTypeService
-
setSnIndexTypeService
-
getSnFieldTypeRegistry
-
setSnFieldTypeRegistry
-
getSnSearchProviderFactory
-
setSnSearchProviderFactory
-