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 of
AsSearchProfileCalculationStrategy for generic search profiles.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculate(AsSearchProfileContext context, AsGenericSearchProfile searchProfile) Calculates the search profile result for a given search profile data object.extractQualifiers(AsSearchProfileContext context, AsGenericSearchProfile searchProfile) getCacheKeyFragment(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, waitMethods inherited from interface de.hybris.platform.adaptivesearch.strategies.AsSearchProfileCalculationStrategy
map
-
Constructor Details
-
AsGenericSearchProfileCalculationStrategy
public AsGenericSearchProfileCalculationStrategy()
-
-
Method Details
-
getCacheKeyFragment
public 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 List<String> extractQualifiers(AsSearchProfileContext context, AsGenericSearchProfile searchProfile) -
getAsSearchProfileResultFactory
-
setAsSearchProfileResultFactory
public void setAsSearchProfileResultFactory(AsSearchProfileResultFactory asSearchProfileResultFactory) -
getAsMergeStrategy
-
setAsMergeStrategy
-