Class DataTrackingKeyGen.CatalogKeyGenerator
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.cache.DataTrackingKeyGen.CatalogKeyGenerator
-
- All Implemented Interfaces:
com.broadleafcommerce.common.extension.cache.key.ContextKeyGen
,org.springframework.cache.interceptor.KeyGenerator
- Direct Known Subclasses:
DataTrackingKeyGen.CatalogWithInstantKeyGenerator
- Enclosing class:
- DataTrackingKeyGen
public static class DataTrackingKeyGen.CatalogKeyGenerator extends Object implements com.broadleafcommerce.common.extension.cache.key.ContextKeyGen
-
-
Constructor Summary
Constructors Constructor Description CatalogKeyGenerator()
CatalogKeyGenerator(VendorAwareCacheKeyEnhancer vendorAwareCacheKeyEnhancer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addContextInfoDataToKey(ContextInfo contextInfo, com.fasterxml.jackson.databind.node.ObjectNode key)
void
applyKeyFromArg(Object param, int position, com.fasterxml.jackson.databind.node.ObjectNode node)
protected VendorAwareCacheKeyEnhancer
getVendorAwareCacheKeyEnhancer()
May be null in the event vendor processing is disabled or if policy validation is disabled.
-
-
-
Constructor Detail
-
CatalogKeyGenerator
public CatalogKeyGenerator()
-
CatalogKeyGenerator
public CatalogKeyGenerator(@Nullable VendorAwareCacheKeyEnhancer vendorAwareCacheKeyEnhancer)
-
-
Method Detail
-
applyKeyFromArg
public void applyKeyFromArg(Object param, int position, com.fasterxml.jackson.databind.node.ObjectNode node)
- Specified by:
applyKeyFromArg
in interfacecom.broadleafcommerce.common.extension.cache.key.ContextKeyGen
-
addContextInfoDataToKey
protected void addContextInfoDataToKey(ContextInfo contextInfo, com.fasterxml.jackson.databind.node.ObjectNode key)
-
getVendorAwareCacheKeyEnhancer
@Nullable protected VendorAwareCacheKeyEnhancer getVendorAwareCacheKeyEnhancer()
May be null in the event vendor processing is disabled or if policy validation is disabled. If null, no vendor privilege considerations will be added to the key.
-
-