All Known Implementing Classes:
CPSCacheImpl

public interface CPSCache
Handling of CPS specific attributes in hybris cache.
  • Method Details

    • setValuePricesMap

      void setValuePricesMap(String kbId, String pricingProduct, Map<CPSMasterDataVariantPriceKey,CPSValuePrice> valuePricesMap)
      Sets ValuePrice into cache
      Parameters:
      kbId - knowledgebase id
      pricingProduct - productId of the pricing product
      valuePricesMap - map of value prices
    • getValuePricesMap

      Map<CPSMasterDataVariantPriceKey,CPSValuePrice> getValuePricesMap(String kbId, String pricingProduct)
      Get ValuePrice from cache
      Parameters:
      kbId - knowledgebase id
      pricingProduct - productId of the pricing product
      Returns:
      map of value prices
    • setCookies

      void setCookies(String configId, List<String> cookieList)
      Sets cookies per configId
      Parameters:
      configId - ID of runtime configuration
      cookieList -
    • setCookies

      default void setCookies(String configId, List<String> cookieList, Map<String,String> contextAttr)
      Sets cookies per configId
      Parameters:
      configId - ID of runtime configuration
      cookieList -
      contextAttr - context with cache key components
    • getCookies

      List<String> getCookies(String configId)
      Parameters:
      configId -
      Returns:
      List of cookies per configId
    • removeCookies

      void removeCookies(String configId)
      Removes cookies per configId
      Parameters:
      configId -
    • removeCookies

      default void removeCookies(String configId, Map<String,String> ctxtAttributes)
      Removes cookies per configId
      Parameters:
      contextAttr - context with cache key components
      configId -
    • getConfiguration

      CPSConfiguration getConfiguration(String configId)
      Retrieves the runtime configuration from cache.
      Parameters:
      configId - runtime configuration id
      Returns:
      runtime configuration
    • removeConfiguration

      void removeConfiguration(String configId)
      Removes the specified configuration from cache
      Parameters:
      configId - runtime configuration id
    • removeConfiguration

      default void removeConfiguration(String configId, Map<String,String> ctxtAttributes)
      Removes the specified configuration from cache
      Parameters:
      configId - runtime configuration id
      ctxtAttributes - context attributes
    • setConfiguration

      void setConfiguration(String configId, CPSConfiguration configuration)
      Sets the runtime configuration into the cache
      Parameters:
      configId - runtime configuration id
      configuration - runtime configuration to be set into cache
    • populateCacheKeyContextAttributes

      default void populateCacheKeyContextAttributes(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.
      Parameters:
      ctxtAttributes - context attribute map to populate