Class DefaultPricingService

  • All Implemented Interfaces:
    PricingService

    public class DefaultPricingService
    extends java.lang.Object
    implements PricingService
    Fetch price related to product with configuration of cache. if cache is enabled , the pricing would be fetched from cache otherwise API call would fetch the pricing from backend
    • Field Detail

      • CONF_PROP_IS_CACHED_CATALOG_PRICE

        public static final java.lang.String CONF_PROP_IS_CACHED_CATALOG_PRICE
        See Also:
        Constant Field Values
      • CACHEKEY_SAP_PRICING

        public static final java.lang.String CACHEKEY_SAP_PRICING
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultPricingService

        public DefaultPricingService()
    • Method Detail

      • getPriceForProduct

        public java.util.List<de.hybris.platform.jalo.order.price.PriceInformation> getPriceForProduct​(ProductModel product)
        Description copied from interface: PricingService
        Get the Price information for the product
        Specified by:
        getPriceForProduct in interface PricingService
        Parameters:
        product - the ProductModel l
        Returns:
        list of PriceInformation for the corresponding product
      • getPriceCacheKey

        protected java.lang.String getPriceCacheKey​(ProductModel productModel)
      • getCurrentCustomerID

        protected java.lang.String getCurrentCustomerID()
      • getCommonI18NService

        public de.hybris.platform.servicelayer.i18n.CommonI18NService getCommonI18NService()
      • setCommonI18NService

        public void setCommonI18NService​(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService)
      • getUserService

        public de.hybris.platform.servicelayer.user.UserService getUserService()
      • setUserService

        public void setUserService​(de.hybris.platform.servicelayer.user.UserService userService)
      • getBaseStoreService

        public de.hybris.platform.store.services.BaseStoreService getBaseStoreService()
      • setBaseStoreService

        public void setBaseStoreService​(de.hybris.platform.store.services.BaseStoreService baseStoreService)
      • getB2bUnitService

        public de.hybris.platform.b2b.services.B2BUnitService getB2bUnitService()
      • setB2bUnitService

        public void setB2bUnitService​(de.hybris.platform.b2b.services.B2BUnitService b2bUnitService)
      • setSalesOrderSimulationService

        public void setSalesOrderSimulationService​(SalesOrderSimulationService salesOrderSimulationService)
      • getSapSalesPricingCacheRegion

        public CacheAccess getSapSalesPricingCacheRegion()
      • setSapSalesPricingCacheRegion

        public void setSapSalesPricingCacheRegion​(CacheAccess sapSalesPricingCacheRegion)
      • setModuleConfigurationAccess

        public void setModuleConfigurationAccess​(ModuleConfigurationAccess moduleConfigurationAccess)
      • setSalesordersimulationUtil

        public void setSalesordersimulationUtil​(SalesOrderSimulationUtil salesordersimulationUtil)