Class AbstractAsSearchProfileCalculationStrategy<T extends AbstractAsSearchProfile>
- java.lang.Object
-
- de.hybris.platform.adaptivesearch.strategies.impl.AbstractAsSearchProfileCalculationStrategy<T>
-
- Type Parameters:
T
- - the type of search profile data
- All Implemented Interfaces:
AsCacheAwareStrategy<T>
,AsSearchProfileCalculationStrategy<T>
- Direct Known Subclasses:
AsCategoryAwareSearchProfileCalculationStrategy
,AsGenericSearchProfileCalculationStrategy
,AsSimpleSearchProfileCalculationStrategy
public abstract class AbstractAsSearchProfileCalculationStrategy<T extends AbstractAsSearchProfile> extends java.lang.Object implements AsSearchProfileCalculationStrategy<T>
Base class for implementations ofAsSearchProfileCalculationStrategy
.
-
-
Constructor Summary
Constructors Constructor Description AbstractAsSearchProfileCalculationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.Serializable
getCacheKeyFragment(AsSearchProfileContext context, T searchProfile)
Returns a cache key fragment.-
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
calculate, 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 AbstractAsSearchProfile>
- Parameters:
context
- - the search profile contextsearchProfile
- - the source object- Returns:
- the key fragment
-
-