Class PricingCurrencyHelper
java.lang.Object
com.broadleafcommerce.pricing.web.helper.PricingCurrencyHelper
- Author:
- Chad Harchar (charchar)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
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 localepriceContext
- The price context on which to set the currency
-