Class AsGenericSimpleSearchProfileLoadStrategy
java.lang.Object
de.hybris.platform.adaptivesearch.strategies.impl.AbstractAsSearchProfileLoadStrategy<AsSimpleSearchProfileModel,AsGenericSearchProfile>
de.hybris.platform.adaptivesearch.strategies.impl.AsGenericSimpleSearchProfileLoadStrategy
- All Implemented Interfaces:
AsCacheAwareStrategy<AsSimpleSearchProfileModel>,AsSearchProfileLoadStrategy<AsSimpleSearchProfileModel,AsGenericSearchProfile>
public class AsGenericSimpleSearchProfileLoadStrategy
extends AbstractAsSearchProfileLoadStrategy<AsSimpleSearchProfileModel,AsGenericSearchProfile>
Implementation of
AsSearchProfileLoadStrategy for simple search profiles.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<String,AsReference> load(AsSearchProfileContext context, AsSimpleSearchProfileModel 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<AsSimpleSearchProfileModel, 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
-
AsGenericSimpleSearchProfileLoadStrategy
public AsGenericSimpleSearchProfileLoadStrategy()
-
-
Method Details
-
load
public AsGenericSearchProfile load(AsSearchProfileContext context, AsSimpleSearchProfileModel 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(AsSimpleSearchProfileModel source) -
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<AsSimpleSearchProfileModel,AsGenericSearchProfile> getAsGenericSearchProfileConverter() -
setAsGenericSearchProfileConverter
public void setAsGenericSearchProfileConverter(Converter<AsSimpleSearchProfileModel, AsGenericSearchProfile> asGenericSearchProfileConverter)
-