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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.apiregistryservices.services.ApiRegistryClientServiceprotected KbDeterminationClientBaseprotected List<CPSMasterDataKBHeaderInfo>getKbHeadersFromService(String product) protected com.fasterxml.jackson.databind.ObjectMapperprotected ProductConfigurationPassportServiceprotected rx.Schedulerload(de.hybris.platform.regioncache.key.CacheKey paramCacheKey) voidsetApiRegistryClientService(de.hybris.platform.apiregistryservices.services.ApiRegistryClientService apiRegistryClientService) voidsetClient(KbDeterminationClientBase newClient) Set Charon client from outside (only used for testing)voidsetProductConfigurationPassportService(ProductConfigurationPassportService productConfigurationPassportService) protected voidtraceJsonRequestBody(String prefix, Object obj)
-
Field Details
-
PASSPORT_GET_KB
- See Also:
-
-
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:
loadin interfacede.hybris.platform.regioncache.CacheValueLoader<List<CPSMasterDataKBHeaderInfo>>
-
getKbHeadersFromService
-
getClient
-
setClient
Set Charon client from outside (only used for testing)- Parameters:
newClient-
-
getScheduler
protected rx.Scheduler getScheduler() -
traceJsonRequestBody
-
getObjectMapper
protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
setProductConfigurationPassportService
public void setProductConfigurationPassportService(ProductConfigurationPassportService productConfigurationPassportService) -
getProductConfigurationPassportService
-