atg.commerce.pricing
Class TaxDiscountCalculator
java.lang.Object
atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.commerce.pricing.DiscountCalculatorService
atg.commerce.pricing.TaxDiscountCalculator
- All Implemented Interfaces:
- TaxPricingCalculator, NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, java.util.EventListener
public class TaxDiscountCalculator
- extends DiscountCalculatorService
- implements TaxPricingCalculator
Calculates TaxPriceInfos for Orders which the calculator is given.
This calculator consults the Qualifer service, looking for the Order to be taxed.
It calls Qualifier.findQualifyingOrder
for this purpose. If it gets back an order,
a TaxPriceInfo is computed based on the input PricingModel (RepositoryItem).
- See Also:
Qualifier
Field Summary |
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
DEFAULT_LOG_TRACE_STATUS |
Methods inherited from class atg.nucleus.GenericService |
addLogListener, createAdminServlet, doStopService, 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 |
CLASS_VERSION
public static java.lang.String CLASS_VERSION
- Class version string
TaxDiscountCalculator
public TaxDiscountCalculator()
setPricingTools
public void setPricingTools(PricingTools pPricingTools)
- pricing tools to help with generating prices
- Parameters:
pPricingTools
- new value to set
getPricingTools
public PricingTools getPricingTools()
- pricing tools to help with generating prices
- Returns:
- property PricingTools
priceTax
public void priceTax(TaxPriceInfo pPriceQuote,
Order pOrder,
RepositoryItem pPricingModel,
java.util.Locale pLocale,
RepositoryItem pProfile,
java.util.Map pExtraParameters)
throws PricingException
- Tax an order within a context.
Discounts the total tax, not individual break down (e.g. local, country)
- Specified by:
priceTax
in interface TaxPricingCalculator
- Parameters:
pPriceQuote
- TaxPriceInfo representing the tax quote for the orderpOrder
- The order to taxpPricingModels
- A Collection of RepositoryItems representing PricingModelspProfile
- The user's profilepExtraParameters
- A Map of extra parameters to be used in the pricing, may be null
- Throws:
PricingException
doStartService
public void doStartService()
throws ServiceException
- Description copied from class:
GenericService
- This is called after a Service has been created, placed into the
naming hierarchy, and initialized with its configured property
values. The Service should override this method to start any
processes it requires.
- Overrides:
doStartService
in class GenericService
- Throws:
ServiceException
- if the Service had a problem starting up