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 of
AsSearchProfileLoadStrategy for category aware search profiles.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<String,AsReference> protected booleanisValidSearchConfiguration(String qualifier, String uniqueIdx) load(AsSearchProfileContext context, AsCategoryAwareSearchProfileModel source) Loads the search profile model and converts it to some data object.map(AsSearchProfileContext context, AsGenericSearchProfile source) Allows additional processing on the search profile data.voidsetAsGenericSearchProfileConverter(Converter<AsCategoryAwareSearchProfileModel, AsGenericSearchProfile> asGenericSearchProfileConverter) voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService) Methods inherited from class de.hybris.platform.adaptivesearch.strategies.impl.AbstractAsSearchProfileLoadStrategy
doLoadSearchConfiguration, getAsCacheStrategy, getAsConfigurableSearchConfigurationConverter, getCacheKeyFragment, getModelService, loadSearchConfiguration, loadSearchConfigurations, setAsCacheStrategy, setAsConfigurableSearchConfigurationConverter, setModelService
-
Field Details
-
AVAILABLE_SEARCH_CONFIGURATIONS_QUERY
- See Also:
-
-
Constructor Details
-
AsGenericCategoryAwareSearchProfileLoadStrategy
public AsGenericCategoryAwareSearchProfileLoadStrategy()
-
-
Method Details
-
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 Map<String,AsReference> buildAvailableSearchConfigurations(AsCategoryAwareSearchProfileModel source) -
isValidSearchConfiguration
-
map
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
-
setFlexibleSearchService
-
getAsGenericSearchProfileConverter
public Converter<AsCategoryAwareSearchProfileModel,AsGenericSearchProfile> getAsGenericSearchProfileConverter() -
setAsGenericSearchProfileConverter
public void setAsGenericSearchProfileConverter(Converter<AsCategoryAwareSearchProfileModel, AsGenericSearchProfile> asGenericSearchProfileConverter)
-