Class PricingCurrencyHelper

java.lang.Object
com.broadleafcommerce.pricing.web.helper.PricingCurrencyHelper

public class PricingCurrencyHelper extends Object
Author:
Chad Harchar (charchar)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setAllowedCurrencyForLocale(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext)
    If there's no currency set for the incoming price context, determine the currency based on the context info's locale.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PricingCurrencyHelper

      public PricingCurrencyHelper()
  • Method Details

    • setAllowedCurrencyForLocale

      public void setAllowedCurrencyForLocale(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext)
      If there's no currency set for the incoming price context, determine the currency based on the context info's locale. Verify that the determined currency is an "allowed" currency for the application, otherwise use the default currency.
      Parameters:
      contextInfo - The context against which to check locale
      priceContext - The price context on which to set the currency