atg.projects.store.pricing
Class StoreTaxPricingEngine

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.commerce.pricing.PricingEngineService
              extended by atg.commerce.pricing.TaxPricingEngineImpl
                  extended by atg.projects.store.pricing.StoreTaxPricingEngine
All Implemented Interfaces:
atg.commerce.pricing.PricingEngine, atg.commerce.pricing.TaxPricingEngine, atg.naming.NameContextBindingListener, atg.naming.NameContextElement, atg.naming.NameResolver, atg.nucleus.AdminableService, atg.nucleus.logging.ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, atg.nucleus.naming.ComponentNameResolver, atg.nucleus.Service, atg.nucleus.ServiceListener, atg.service.scheduler.Schedulable, java.util.EventListener

public class StoreTaxPricingEngine
extends atg.commerce.pricing.TaxPricingEngineImpl

This overrides TaxPricingEngineImpl's getCurrencyCode() to get the currency from the price list, rather than the user locale.

See Also:
TaxPricingEngineImpl

Field Summary
static java.lang.String CLASS_VERSION
          Class version string.
 
Fields inherited from class atg.commerce.pricing.PricingEngineService
mGlobalPromotions
 
Fields inherited from class atg.nucleus.GenericService
SERVICE_INFO_KEY
 
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging
DEFAULT_LOG_TRACE_STATUS
 
Fields inherited from interface atg.nucleus.logging.ApplicationLogging
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
 
Constructor Summary
StoreTaxPricingEngine()
           
 
Method Summary
protected  java.lang.String getCurrencyCode(atg.commerce.order.Order pOrder, java.util.Collection pPricingModels, java.util.Locale pLocale, atg.repository.RepositoryItem pProfile, java.util.Map pExtraParameters)
          Return the currency code that should be used in the context of this pricing request.
 StorePriceListManager getPriceListManager()
          Returns the reference to the PriceListManager which handles the operations of the PriceList.
 void setPriceListManager(StorePriceListManager pPriceListManager)
          Sets property PriceListManager which handles the operations of the PriceList.
 
Methods inherited from class atg.commerce.pricing.TaxPricingEngineImpl
checkPromotionsForCloseness, getPostCalculators, getPreCalculators, getPricingModels, priceTax, setPostCalculators, setPreCalculators
 
Methods inherited from class atg.commerce.pricing.PricingEngineService
addPromotion, addPromotionToList, checkAndAddPromotions, checkPromotionExpiration, createPriceInfo, doStartService, doStopService, expirePromotion, findGlobalPromotions, getAdjustmentPricingModels, getCalculator, getClosenessQualifierEvaluator, getCurrencyCode, getDefaultLocale, getGlobalPromotions, getGlobalPromotionsQuery, getGlobalPromotionsSchedulableDate, getInitialPromotions, getPriceInfoClass, getPricingCurrencyCode, getPricingModelComparator, getPricingModelProperties, getPricingTools, getProfileProperties, getPromotionItemDescriptors, getPromotionItemTypes, getPromotions, getPromotionsRepository, getPromotionTools, getScheduler, getUpdateSchedule, getUserOnlyPromotions, loadGlobalPromotions, performScheduledTask, setClosenessQualifierEvaluator, setDefaultLocale, setGlobalPromotionsQuery, setGlobalPromotionsSchedulableDate, setPriceInfoClass, setPricingModelComparator, setPricingModelProperties, setPricingTools, setProfileProperties, setPromotionItemTypes, setPromotionsRepository, setPromotionTools, setScheduler, setUpdateSchedule
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string.

Constructor Detail

StoreTaxPricingEngine

public StoreTaxPricingEngine()
Method Detail

setPriceListManager

public void setPriceListManager(StorePriceListManager pPriceListManager)
Sets property PriceListManager which handles the operations of the PriceList.

Parameters:
pPriceListManager - the new value to set

getPriceListManager

public StorePriceListManager getPriceListManager()
Returns the reference to the PriceListManager which handles the operations of the PriceList.

Returns:
the reference to the PriceListManager

getCurrencyCode

protected java.lang.String getCurrencyCode(atg.commerce.order.Order pOrder,
                                           java.util.Collection pPricingModels,
                                           java.util.Locale pLocale,
                                           atg.repository.RepositoryItem pProfile,
                                           java.util.Map pExtraParameters)
                                    throws atg.commerce.pricing.PricingException
Return the currency code that should be used in the context of this pricing request.

Overrides:
getCurrencyCode in class atg.commerce.pricing.TaxPricingEngineImpl
Throws:
atg.commerce.pricing.PricingException - if an error occurs while attempting to determine the currency code