Class CPSCacheImpl
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.runtime.cps.cache.impl.CPSCacheImpl
-
-
Constructor Summary
Constructors Constructor Description CPSCacheImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPSConfigurationgetConfiguration(java.lang.String configId)Retrieves the runtime configuration from cache.protected ProductConfigurationCacheAccess<ProductConfigurationCacheKey,CPSConfiguration>getConfigurationCache()protected ProductConfigurationCacheAccess<ProductConfigurationCacheKey,java.util.List<java.lang.String>>getCookieCache()java.util.List<java.lang.String>getCookies(java.lang.String configId)protected CPSCacheKeyGeneratorgetKeyGenerator()protected ProductConfigurationCacheAccess<ProductConfigurationCacheKey,java.util.Map<CPSMasterDataVariantPriceKey,CPSValuePrice>>getValuePricesCache()java.util.Map<CPSMasterDataVariantPriceKey,CPSValuePrice>getValuePricesMap(java.lang.String kbId, java.lang.String pricingProduct)Get ValuePrice from cachevoidremoveConfiguration(java.lang.String configId)Removes the specified configuration from cachevoidremoveCookies(java.lang.String configId)Removes cookies per configIdvoidsetConfiguration(java.lang.String configId, CPSConfiguration configuration)Sets the runtime configuration into the cachevoidsetConfigurationCache(ProductConfigurationCacheAccess<ProductConfigurationCacheKey,CPSConfiguration> configurationCache)voidsetCookieCache(ProductConfigurationCacheAccess<ProductConfigurationCacheKey,java.util.List<java.lang.String>> cookieCache)voidsetCookies(java.lang.String configId, java.util.List<java.lang.String> cookieList)Sets cookies per configIdvoidsetKeyGenerator(CPSCacheKeyGenerator keyGenerator)voidsetValuePricesCache(ProductConfigurationCacheAccess<ProductConfigurationCacheKey,java.util.Map<CPSMasterDataVariantPriceKey,CPSValuePrice>> valuePricesCache)voidsetValuePricesMap(java.lang.String kbId, java.lang.String pricingProduct, java.util.Map<CPSMasterDataVariantPriceKey,CPSValuePrice> valuePricesMap)Sets ValuePrice into cache
-
-
-
Method Detail
-
setValuePricesMap
public void setValuePricesMap(java.lang.String kbId, java.lang.String pricingProduct, java.util.Map<CPSMasterDataVariantPriceKey,CPSValuePrice> valuePricesMap)Description copied from interface:CPSCacheSets ValuePrice into cache- Specified by:
setValuePricesMapin interfaceCPSCache- Parameters:
kbId- knowledgebase idpricingProduct- productId of the pricing productvaluePricesMap- map of value prices
-
getValuePricesMap
public java.util.Map<CPSMasterDataVariantPriceKey,CPSValuePrice> getValuePricesMap(java.lang.String kbId, java.lang.String pricingProduct)
Description copied from interface:CPSCacheGet ValuePrice from cache- Specified by:
getValuePricesMapin interfaceCPSCache- Parameters:
kbId- knowledgebase idpricingProduct- productId of the pricing product- Returns:
- map of value prices
-
setCookies
public void setCookies(java.lang.String configId, java.util.List<java.lang.String> cookieList)Description copied from interface:CPSCacheSets cookies per configId- Specified by:
setCookiesin interfaceCPSCache- Parameters:
configId- ID of runtime configuration
-
getCookies
public java.util.List<java.lang.String> getCookies(java.lang.String configId)
- Specified by:
getCookiesin interfaceCPSCache- Returns:
- List of cookies per configId
-
removeCookies
public void removeCookies(java.lang.String configId)
Description copied from interface:CPSCacheRemoves cookies per configId- Specified by:
removeCookiesin interfaceCPSCache
-
getConfiguration
public CPSConfiguration getConfiguration(java.lang.String configId)
Description copied from interface:CPSCacheRetrieves the runtime configuration from cache.- Specified by:
getConfigurationin interfaceCPSCache- Parameters:
configId- runtime configuration id- Returns:
- runtime configuration
-
setConfiguration
public void setConfiguration(java.lang.String configId, CPSConfiguration configuration)Description copied from interface:CPSCacheSets the runtime configuration into the cache- Specified by:
setConfigurationin interfaceCPSCache- Parameters:
configId- runtime configuration idconfiguration- runtime configuration to be set into cache
-
removeConfiguration
public void removeConfiguration(java.lang.String configId)
Description copied from interface:CPSCacheRemoves the specified configuration from cache- Specified by:
removeConfigurationin interfaceCPSCache- Parameters:
configId- runtime configuration id
-
getCookieCache
protected ProductConfigurationCacheAccess<ProductConfigurationCacheKey,java.util.List<java.lang.String>> getCookieCache()
-
setCookieCache
public void setCookieCache(ProductConfigurationCacheAccess<ProductConfigurationCacheKey,java.util.List<java.lang.String>> cookieCache)
-
getKeyGenerator
protected CPSCacheKeyGenerator getKeyGenerator()
-
setKeyGenerator
public void setKeyGenerator(CPSCacheKeyGenerator keyGenerator)
-
getValuePricesCache
protected ProductConfigurationCacheAccess<ProductConfigurationCacheKey,java.util.Map<CPSMasterDataVariantPriceKey,CPSValuePrice>> getValuePricesCache()
-
setValuePricesCache
public void setValuePricesCache(ProductConfigurationCacheAccess<ProductConfigurationCacheKey,java.util.Map<CPSMasterDataVariantPriceKey,CPSValuePrice>> valuePricesCache)
-
getConfigurationCache
protected ProductConfigurationCacheAccess<ProductConfigurationCacheKey,CPSConfiguration> getConfigurationCache()
-
setConfigurationCache
public void setConfigurationCache(ProductConfigurationCacheAccess<ProductConfigurationCacheKey,CPSConfiguration> configurationCache)
-
-