Interface CPSCache
- All Known Implementing Classes:
CPSCacheImpl
public interface CPSCache
Handling of CPS specific attributes in hybris cache.
-
Method Summary
Modifier and TypeMethodDescriptiongetConfiguration(String configId) Retrieves the runtime configuration from cache.getCookies(String configId) getValuePricesMap(String kbId, String pricingProduct) Get ValuePrice from cachedefault voidpopulateCacheKeyContextAttributes(Map<String, String> contextAttr, String clientId) Populates the map with all cache key components that depend on the current sessionContext, so a cache key for a given configId can re-created independently of the current session/thread context.voidremoveConfiguration(String configId) Removes the specified configuration from cachedefault voidremoveConfiguration(String configId, Map<String, String> ctxtAttributes) Removes the specified configuration from cachevoidremoveCookies(String configId) Removes cookies per configIddefault voidremoveCookies(String configId, Map<String, String> ctxtAttributes) Removes cookies per configIdvoidsetConfiguration(String configId, CPSConfiguration configuration) Sets the runtime configuration into the cachevoidsetCookies(String configId, List<String> cookieList) Sets cookies per configIddefault voidSets cookies per configIdvoidsetValuePricesMap(String kbId, String pricingProduct, Map<CPSMasterDataVariantPriceKey, CPSValuePrice> valuePricesMap) Sets ValuePrice into cache
-
Method Details
-
setValuePricesMap
void setValuePricesMap(String kbId, String pricingProduct, Map<CPSMasterDataVariantPriceKey, CPSValuePrice> valuePricesMap) Sets ValuePrice into cache- Parameters:
kbId- knowledgebase idpricingProduct- productId of the pricing productvaluePricesMap- map of value prices
-
getValuePricesMap
Map<CPSMasterDataVariantPriceKey,CPSValuePrice> getValuePricesMap(String kbId, String pricingProduct) Get ValuePrice from cache- Parameters:
kbId- knowledgebase idpricingProduct- productId of the pricing product- Returns:
- map of value prices
-
setCookies
Sets cookies per configId- Parameters:
configId- ID of runtime configurationcookieList-
-
setCookies
Sets cookies per configId- Parameters:
configId- ID of runtime configurationcookieList-contextAttr- context with cache key components
-
getCookies
- Parameters:
configId-- Returns:
- List of cookies per configId
-
removeCookies
Removes cookies per configId- Parameters:
configId-
-
removeCookies
Removes cookies per configId- Parameters:
contextAttr- context with cache key componentsconfigId-
-
getConfiguration
Retrieves the runtime configuration from cache.- Parameters:
configId- runtime configuration id- Returns:
- runtime configuration
-
removeConfiguration
Removes the specified configuration from cache- Parameters:
configId- runtime configuration id
-
removeConfiguration
Removes the specified configuration from cache- Parameters:
configId- runtime configuration idctxtAttributes- context attributes
-
setConfiguration
Sets the runtime configuration into the cache- Parameters:
configId- runtime configuration idconfiguration- runtime configuration to be set into cache
-
populateCacheKeyContextAttributes
Populates the map with all cache key components that depend on the current sessionContext, so a cache key for a given configId can re-created independently of the current session/thread context.- Parameters:
ctxtAttributes- context attribute map to populate
-