@Component(value="blThresholdCachePriceListOverrideStrategy") @Lazy public class ThresholdCachePriceListOverrideStrategy extends Object implements PriceListOverrideStrategy
PriceListOverrideStrategy. Should run last and will always return a result. Primarily supports multitenant
scenarios with the following characteristics:
PriceListSupport.getThresholdForFullCache() and PriceListSupport.getTemplateThresholdForFullCache()
for more information on these properties and how to set their values.SparsePriceListOverrideStrategy| Modifier and Type | Field and Description |
|---|---|
protected com.broadleafcommerce.enterprise.common.extension.pricelist.PriceListDaoExtensionManager |
extensionManager |
protected PriceListSupport |
priceListSupport |
| Constructor and Description |
|---|
ThresholdCachePriceListOverrideStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected org.broadleafcommerce.common.extension.StandardCacheItem |
buildSingleItemResponse(SkuPriceData priceData) |
protected Long |
getNormalizedId(org.broadleafcommerce.core.catalog.domain.Sku sku) |
int |
getOrder() |
org.broadleafcommerce.common.extension.StandardCacheItem |
getOverride(PriceList priceList,
org.broadleafcommerce.core.catalog.domain.Sku sku,
String basicCacheKey)
Retrieve the standard site override SkuPriceData, if applicable
|
org.broadleafcommerce.common.extension.StandardCacheItem |
getTemplate(String templateCacheKey,
PriceList priceList,
org.broadleafcommerce.core.catalog.domain.Sku sku)
Retrieve the template level SkuPriceData, if applicable
|
boolean |
validateTemplateProcessing(String standardCacheKey,
String templateCacheKey)
Whether or not a template version should be searched for.
|
@Autowired protected PriceListSupport priceListSupport
protected com.broadleafcommerce.enterprise.common.extension.pricelist.PriceListDaoExtensionManager extensionManager
public ThresholdCachePriceListOverrideStrategy()
public org.broadleafcommerce.common.extension.StandardCacheItem getOverride(PriceList priceList, org.broadleafcommerce.core.catalog.domain.Sku sku, String basicCacheKey)
PriceListOverrideStrategygetOverride in interface PriceListOverrideStrategypublic org.broadleafcommerce.common.extension.StandardCacheItem getTemplate(String templateCacheKey, PriceList priceList, org.broadleafcommerce.core.catalog.domain.Sku sku)
PriceListOverrideStrategygetTemplate in interface PriceListOverrideStrategypublic boolean validateTemplateProcessing(String standardCacheKey, String templateCacheKey)
PriceListOverrideStrategyvalidateTemplateProcessing in interface PriceListOverrideStrategypublic int getOrder()
getOrder in interface org.springframework.core.Orderedprotected org.broadleafcommerce.common.extension.StandardCacheItem buildSingleItemResponse(SkuPriceData priceData)
protected Long getNormalizedId(org.broadleafcommerce.core.catalog.domain.Sku sku)
Copyright © 2018. All rights reserved.