Class AbstractAsSearchProfileLoadStrategy<T extends AbstractAsSearchProfileModel,R extends AbstractAsSearchProfile>
- java.lang.Object
-
- de.hybris.platform.adaptivesearch.strategies.impl.AbstractAsSearchProfileLoadStrategy<T,R>
-
- Type Parameters:
T
- - the type of search profile modelR
- - the type of search profile data
- All Implemented Interfaces:
AsCacheAwareStrategy<T>
,AsSearchProfileLoadStrategy<T,R>
- Direct Known Subclasses:
AsCategoryAwareSearchProfileLoadStrategy
,AsGenericCategoryAwareSearchProfileLoadStrategy
,AsGenericSimpleSearchProfileLoadStrategy
,AsSimpleSearchProfileLoadStrategy
public abstract class AbstractAsSearchProfileLoadStrategy<T extends AbstractAsSearchProfileModel,R extends AbstractAsSearchProfile> extends java.lang.Object implements AsSearchProfileLoadStrategy<T,R>
Base class for implementations ofAbstractAsSearchProfileLoadStrategy
.
-
-
Constructor Summary
Constructors Constructor Description AbstractAsSearchProfileLoadStrategy()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.adaptivesearch.strategies.AsSearchProfileLoadStrategy
load, map
-
-
-
-
Method Detail
-
getCacheKeyFragment
public java.io.Serializable getCacheKeyFragment(AsSearchProfileContext context, T searchProfile)
Description copied from interface:AsCacheAwareStrategy
Returns a cache key fragment. In most cases implementing strategies can simply returnnull
. If strategies can have results that depend on the context, a different implementation should be provided.- Specified by:
getCacheKeyFragment
in interfaceAsCacheAwareStrategy<T extends AbstractAsSearchProfileModel>
- Parameters:
context
- - the search profile contextsearchProfile
- - the source object- Returns:
- the key fragment
-
loadSearchConfigurations
protected java.util.Map<java.lang.String,AsConfigurableSearchConfiguration> loadSearchConfigurations(AsSearchProfileContext context, AsGenericSearchProfile source)
-
loadSearchConfiguration
protected void loadSearchConfiguration(java.util.Map<java.lang.String,AsConfigurableSearchConfiguration> searchConfigurations, java.lang.String qualifier, AsReference searchConfigurationReference, AsSearchConfigurationConverterContext converterContext)
-
doLoadSearchConfiguration
protected AsConfigurableSearchConfiguration doLoadSearchConfiguration(AsReference searchConfigurationReference, AsSearchConfigurationConverterContext converterContext)
-
getModelService
public ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getAsCacheStrategy
public AsCacheStrategy getAsCacheStrategy()
-
setAsCacheStrategy
public void setAsCacheStrategy(AsCacheStrategy asCacheStrategy)
-
getAsConfigurableSearchConfigurationConverter
public ContextAwareConverter<AbstractAsConfigurableSearchConfigurationModel,AsConfigurableSearchConfiguration,AsSearchConfigurationConverterContext> getAsConfigurableSearchConfigurationConverter()
-
setAsConfigurableSearchConfigurationConverter
public void setAsConfigurableSearchConfigurationConverter(ContextAwareConverter<AbstractAsConfigurableSearchConfigurationModel,AsConfigurableSearchConfiguration,AsSearchConfigurationConverterContext> asConfigurableSearchConfigurationConverter)
-
-