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 ofAsSearchProfileLoadStrategyfor simple search profiles.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringAVAILABLE_SEARCH_CONFIGURATIONS_QUERY
-
Constructor Summary
Constructors Constructor Description AsGenericSimpleSearchProfileLoadStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.String,AsReference>buildAvailableSearchConfigurations(AsSimpleSearchProfileModel source)Converter<AsSimpleSearchProfileModel,AsGenericSearchProfile>getAsGenericSearchProfileConverter()FlexibleSearchServicegetFlexibleSearchService()AsGenericSearchProfileload(AsSearchProfileContext context, AsSimpleSearchProfileModel source)Loads the search profile model and converts it to some data object.AsGenericSearchProfilemap(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 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, 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 java.util.Map<java.lang.String,AsReference> buildAvailableSearchConfigurations(AsSimpleSearchProfileModel source)
-
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<AsSimpleSearchProfileModel,AsGenericSearchProfile> getAsGenericSearchProfileConverter()
-
setAsGenericSearchProfileConverter
public void setAsGenericSearchProfileConverter(Converter<AsSimpleSearchProfileModel,AsGenericSearchProfile> asGenericSearchProfileConverter)
-
-