Class AsGenericSearchProfileCalculationStrategy
- java.lang.Object
-
- de.hybris.platform.adaptivesearch.strategies.impl.AbstractAsSearchProfileCalculationStrategy<AsGenericSearchProfile>
-
- de.hybris.platform.adaptivesearch.strategies.impl.AsGenericSearchProfileCalculationStrategy
-
- All Implemented Interfaces:
AsCacheAwareStrategy<AsGenericSearchProfile>,AsSearchProfileCalculationStrategy<AsGenericSearchProfile>
public class AsGenericSearchProfileCalculationStrategy extends AbstractAsSearchProfileCalculationStrategy<AsGenericSearchProfile>
Implementation ofAsSearchProfileCalculationStrategyfor generic search profiles.
-
-
Constructor Summary
Constructors Constructor Description AsGenericSearchProfileCalculationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsSearchProfileResultcalculate(AsSearchProfileContext context, AsGenericSearchProfile searchProfile)Calculates the search profile result for a given search profile data object.protected java.util.List<java.lang.String>extractQualifiers(AsSearchProfileContext context, AsGenericSearchProfile searchProfile)AsMergeStrategygetAsMergeStrategy()AsSearchProfileResultFactorygetAsSearchProfileResultFactory()java.io.SerializablegetCacheKeyFragment(AsSearchProfileContext context, AsGenericSearchProfile searchProfile)Returns a cache key fragment.voidsetAsMergeStrategy(AsMergeStrategy asMergeStrategy)voidsetAsSearchProfileResultFactory(AsSearchProfileResultFactory asSearchProfileResultFactory)-
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.AsSearchProfileCalculationStrategy
map
-
-
-
-
Method Detail
-
getCacheKeyFragment
public java.io.Serializable getCacheKeyFragment(AsSearchProfileContext context, AsGenericSearchProfile searchProfile)
Description copied from interface:AsCacheAwareStrategyReturns 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:
getCacheKeyFragmentin interfaceAsCacheAwareStrategy<AsGenericSearchProfile>- Overrides:
getCacheKeyFragmentin classAbstractAsSearchProfileCalculationStrategy<AsGenericSearchProfile>- Parameters:
context- - the search profile contextsearchProfile- - the source object- Returns:
- the key fragment
-
calculate
public AsSearchProfileResult calculate(AsSearchProfileContext context, AsGenericSearchProfile searchProfile)
Description copied from interface:AsSearchProfileCalculationStrategyCalculates the search profile result for a given search profile data object. The returned value can be cached.- Parameters:
context- - the search profile contextsearchProfile- - the search profile data- Returns:
- the search profile result
-
extractQualifiers
protected java.util.List<java.lang.String> extractQualifiers(AsSearchProfileContext context, AsGenericSearchProfile searchProfile)
-
getAsSearchProfileResultFactory
public AsSearchProfileResultFactory getAsSearchProfileResultFactory()
-
setAsSearchProfileResultFactory
public void setAsSearchProfileResultFactory(AsSearchProfileResultFactory asSearchProfileResultFactory)
-
getAsMergeStrategy
public AsMergeStrategy getAsMergeStrategy()
-
setAsMergeStrategy
public void setAsMergeStrategy(AsMergeStrategy asMergeStrategy)
-
-