public final class DataTrackingKeyGen extends Object
KeyGenerator
instances that fulfill common
Broadleaf use cases. These are useful, as they include additional key fragments, such as tenant
and locale related information that are not obvious from cached method signatures.Modifier and Type | Class and Description |
---|---|
static class |
DataTrackingKeyGen.ApplicationKeyGenerator |
static class |
DataTrackingKeyGen.ApplicationWithInstantKeyGenerator |
static class |
DataTrackingKeyGen.ApplicationWithLocaleKeyGenerator |
static class |
DataTrackingKeyGen.ApplicationWithLocaleWithInstantKeyGenerator |
static class |
DataTrackingKeyGen.CatalogKeyGenerator |
static class |
DataTrackingKeyGen.CatalogWithInstantKeyGenerator |
static class |
DataTrackingKeyGen.CatalogWithLocaleKeyGenerator |
static class |
DataTrackingKeyGen.CatalogWithLocaleWithInstantKeyGenerator |
static class |
DataTrackingKeyGen.KeyType |
static class |
DataTrackingKeyGen.TenantKeyGenerator |
static class |
DataTrackingKeyGen.TenantWithInstantKeyGenerator |
static class |
DataTrackingKeyGen.TenantWithLocaleKeyGenerator |
static class |
DataTrackingKeyGen.TenantWithLocaleWithInstantKeyGenerator |
Modifier and Type | Method and Description |
---|---|
static com.broadleafcommerce.common.extension.cache.key.ContextKeyGen |
of(DataTrackingKeyGen.KeyType keyType) |
static com.broadleafcommerce.common.extension.cache.key.ContextKeyGen |
ofCatalogWithVendorSupport(DataTrackingKeyGen.KeyType keyType,
VendorAwareTrackablePolicyUtils vendorAwareTrackablePolicyUtils)
When vendor processing is enabled, catalog-discriminated entities are also discriminated by
the vendor their catalog is associated to.
|
public static com.broadleafcommerce.common.extension.cache.key.ContextKeyGen of(DataTrackingKeyGen.KeyType keyType)
public static com.broadleafcommerce.common.extension.cache.key.ContextKeyGen ofCatalogWithVendorSupport(DataTrackingKeyGen.KeyType keyType, @Nullable VendorAwareTrackablePolicyUtils vendorAwareTrackablePolicyUtils)
keyType
- a catalog-related DataTrackingKeyGen.KeyType
vendorAwareTrackablePolicyUtils
- (optional) the vendor-aware trackable policy utils
implementation used to determine the current authentication's privileges. 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.IllegalArgumentException
- if the key type is not a catalog typeCatalogVendorAwareCacheKeyEnhancer
Copyright © 2021. All rights reserved.