Class AsGenericCategoryAwareSearchProfileLoadStrategy
- java.lang.Object
-
- de.hybris.platform.adaptivesearch.strategies.impl.AbstractAsSearchProfileLoadStrategy<AsCategoryAwareSearchProfileModel,AsGenericSearchProfile>
-
- de.hybris.platform.adaptivesearch.strategies.impl.AsGenericCategoryAwareSearchProfileLoadStrategy
-
- All Implemented Interfaces:
AsCacheAwareStrategy<AsCategoryAwareSearchProfileModel>,AsSearchProfileLoadStrategy<AsCategoryAwareSearchProfileModel,AsGenericSearchProfile>
public class AsGenericCategoryAwareSearchProfileLoadStrategy extends AbstractAsSearchProfileLoadStrategy<AsCategoryAwareSearchProfileModel,AsGenericSearchProfile>
Implementation ofAsSearchProfileLoadStrategyfor category aware search profiles.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringAVAILABLE_SEARCH_CONFIGURATIONS_QUERY
-
Constructor Summary
Constructors Constructor Description AsGenericCategoryAwareSearchProfileLoadStrategy()
-
Method Summary
-
Methods inherited from class de.hybris.platform.adaptivesearch.strategies.impl.AbstractAsSearchProfileLoadStrategy
doLoadSearchConfiguration, getAsCacheStrategy, getAsConfigurableSearchConfigurationConverter, getCacheKeyFragment, getModelService, loadSearchConfiguration, loadSearchConfigurations, setAsCacheStrategy, setAsConfigurableSearchConfigurationConverter, setModelService
-
-
-
-
Field Detail
-
AVAILABLE_SEARCH_CONFIGURATIONS_QUERY
protected static final java.lang.String AVAILABLE_SEARCH_CONFIGURATIONS_QUERY
- See Also:
- Constant Field Values
-
-
Method Detail
-
load
public AsGenericSearchProfile load(AsSearchProfileContext context, AsCategoryAwareSearchProfileModel source)
Description copied from interface:AsSearchProfileLoadStrategyLoads the search profile model and converts it to some data object. The returned value can be cached.- Parameters:
context- - the search profile contextsource- - the search profile model- Returns:
- the search profile data
-
buildAvailableSearchConfigurations
protected java.util.Map<java.lang.String,AsReference> buildAvailableSearchConfigurations(AsCategoryAwareSearchProfileModel source)
-
isValidSearchConfiguration
protected boolean isValidSearchConfiguration(java.lang.String qualifier, java.lang.String uniqueIdx)
-
map
public AsGenericSearchProfile map(AsSearchProfileContext context, AsGenericSearchProfile source)
Description copied from interface:AsSearchProfileLoadStrategyAllows additional processing on the search profile data. This method should not modify the given search profile data. The returned value should not be cached.- Parameters:
context- - the search profile contextsource- - the search profile data- Returns:
- the new search profile data
-
getFlexibleSearchService
public FlexibleSearchService getFlexibleSearchService()
-
setFlexibleSearchService
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
getAsGenericSearchProfileConverter
public Converter<AsCategoryAwareSearchProfileModel,AsGenericSearchProfile> getAsGenericSearchProfileConverter()
-
setAsGenericSearchProfileConverter
public void setAsGenericSearchProfileConverter(Converter<AsCategoryAwareSearchProfileModel,AsGenericSearchProfile> asGenericSearchProfileConverter)
-
-