Class KnowledgeBaseHeadersCacheValueLoader

java.lang.Object
de.hybris.platform.sap.productconfig.runtime.cps.cache.impl.KnowledgeBaseHeadersCacheValueLoader
All Implemented Interfaces:
de.hybris.platform.regioncache.CacheValueLoader<List<CPSMasterDataKBHeaderInfo>>

public class KnowledgeBaseHeadersCacheValueLoader extends Object implements de.hybris.platform.regioncache.CacheValueLoader<List<CPSMasterDataKBHeaderInfo>>
Queries the CPS kb determination service to fill the CPS KB Header Info cache.
  • Field Details

  • Constructor Details

    • KnowledgeBaseHeadersCacheValueLoader

      public KnowledgeBaseHeadersCacheValueLoader()
  • Method Details

    • getApiRegistryClientService

      protected de.hybris.platform.apiregistryservices.services.ApiRegistryClientService getApiRegistryClientService()
    • setApiRegistryClientService

      public void setApiRegistryClientService(de.hybris.platform.apiregistryservices.services.ApiRegistryClientService apiRegistryClientService)
      Parameters:
      apiRegistryClientService - the apiRegistryClientService to set
    • load

      public List<CPSMasterDataKBHeaderInfo> load(de.hybris.platform.regioncache.key.CacheKey paramCacheKey)
      Specified by:
      load in interface de.hybris.platform.regioncache.CacheValueLoader<List<CPSMasterDataKBHeaderInfo>>
    • getKbHeadersFromService

      protected List<CPSMasterDataKBHeaderInfo> getKbHeadersFromService(String product)
    • getClient

      protected KbDeterminationClientBase getClient()
    • setClient

      public void setClient(KbDeterminationClientBase newClient)
      Set Charon client from outside (only used for testing)
      Parameters:
      newClient -
    • getScheduler

      protected rx.Scheduler getScheduler()
    • traceJsonRequestBody

      protected void traceJsonRequestBody(String prefix, Object obj)
    • getObjectMapper

      protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
    • setProductConfigurationPassportService

      public void setProductConfigurationPassportService(ProductConfigurationPassportService productConfigurationPassportService)
    • getProductConfigurationPassportService

      protected ProductConfigurationPassportService getProductConfigurationPassportService()