Class AnalyticsServiceImpl
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.services.analytics.impl.AnalyticsServiceImpl
-
- All Implemented Interfaces:
AnalyticsService
public class AnalyticsServiceImpl extends java.lang.Object implements AnalyticsService
Default implementation of theAnalyticsService.
While the atcual service call is delegated to the analytics provider, this service will cache the result within the sesseion, to reduce number of actual service calls to a minimum.
-
-
Constructor Summary
Constructors Constructor Description AnalyticsServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalyticsDocumentgetAnalyticData(java.lang.String configId)Retrieves the analytic documentprotected ConfigurationModelCacheStrategygetConfigurationModelCacheStrategy()protected ProductConfigurationCacheAccessServicegetProductConfigurationCacheAccessService()protected ProviderFactorygetProviderFactory()booleanisActive()Indicates whether the underlying analytical provider is activevoidsetConfigurationModelCacheStrategy(ConfigurationModelCacheStrategy configurationModelCacheStrategy)voidsetProductConfigurationCacheAccessService(ProductConfigurationCacheAccessService productConfigurationCacheAccessService)voidsetProviderFactory(ProviderFactory providerFactory)
-
-
-
Method Detail
-
getAnalyticData
public AnalyticsDocument getAnalyticData(java.lang.String configId)
Description copied from interface:AnalyticsServiceRetrieves the analytic document- Specified by:
getAnalyticDatain interfaceAnalyticsService- Parameters:
configId- id of the configuration- Returns:
- analytical data
-
getProviderFactory
protected ProviderFactory getProviderFactory()
-
setProviderFactory
public void setProviderFactory(ProviderFactory providerFactory)
-
isActive
public boolean isActive()
Description copied from interface:AnalyticsServiceIndicates whether the underlying analytical provider is active- Specified by:
isActivein interfaceAnalyticsService- Returns:
- true if the underlying pricing provider is active
-
getConfigurationModelCacheStrategy
protected ConfigurationModelCacheStrategy getConfigurationModelCacheStrategy()
-
setConfigurationModelCacheStrategy
public void setConfigurationModelCacheStrategy(ConfigurationModelCacheStrategy configurationModelCacheStrategy)
-
getProductConfigurationCacheAccessService
protected ProductConfigurationCacheAccessService getProductConfigurationCacheAccessService()
-
setProductConfigurationCacheAccessService
public void setProductConfigurationCacheAccessService(ProductConfigurationCacheAccessService productConfigurationCacheAccessService)
-
-