|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.commerce.pricing.ItemPriceCalculator
atg.commerce.csr.pricing.calculators.ExchangeItemAdjustmentCalculator
public class ExchangeItemAdjustmentCalculator
This calculator is designed to run as a item pricing post calculator and adjust the price info of exchange items based on their corresponding items in the promotion evaluation order.
It extends the pricing operation for exchange items to copy price information from the corresponding items in the promotion evaluation order.
priceItem(ReturnRequest, ItemPriceInfo, CommerceItem, Locale, RepositoryItem, Map)
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected ReturnTools |
mReturnTools
|
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 | |
---|---|
ExchangeItemAdjustmentCalculator()
|
Method Summary | |
---|---|
ReturnTools |
getReturnTools()
|
protected void |
priceItem(double pPrice,
atg.commerce.pricing.ItemPriceInfo pPriceQuote,
atg.commerce.order.CommerceItem pItem,
atg.repository.RepositoryItem pPricingModel,
java.util.Locale pLocale,
atg.repository.RepositoryItem pProfile,
java.util.Map pExtraParameters)
Noop impl. |
void |
priceItem(atg.commerce.pricing.ItemPriceInfo pPriceQuote,
atg.commerce.order.CommerceItem pItem,
atg.repository.RepositoryItem pPricingModel,
java.util.Locale pLocale,
atg.repository.RepositoryItem pProfile,
java.util.Map pExtraParameters)
This method determines if a return request was passed as in extra parameter and will attempt to copy information from the corresponding item in the promotion evaluation order. |
void |
priceItem(ReturnRequest pReturnRequest,
atg.commerce.pricing.ItemPriceInfo pPriceQuote,
atg.commerce.order.CommerceItem pItem,
java.util.Locale pLocale,
atg.repository.RepositoryItem pProfile,
java.util.Map pExtraParameters)
Copies over info from the corresponding item in the promotion evaluation order. |
void |
setReturnTools(ReturnTools pReturnTools)
Sets the return tools |
Methods inherited from class atg.commerce.pricing.ItemPriceCalculator |
---|
getItemPriceSource, getLoggingIdentifier, getPrice, getPricePropertyName, getPriceSource, getPriceSource, getPricingTools, isPriceFromCatalogRef, isRequirePriceValue, populateItemPriceSource, priceEachItem, priceItems, setLoggingIdentifier, setPriceFromCatalogRef, setPricePropertyName, setPricingTools, setRequirePriceValue, shouldConsumeSource |
Methods inherited from class atg.nucleus.GenericService |
---|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, 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 |
---|
public static final java.lang.String CLASS_VERSION
protected ReturnTools mReturnTools
Constructor Detail |
---|
public ExchangeItemAdjustmentCalculator()
Method Detail |
---|
public void setReturnTools(ReturnTools pReturnTools)
pReturnTools
- the return toolspublic ReturnTools getReturnTools()
protected void priceItem(double pPrice, atg.commerce.pricing.ItemPriceInfo pPriceQuote, atg.commerce.order.CommerceItem pItem, atg.repository.RepositoryItem pPricingModel, java.util.Locale pLocale, atg.repository.RepositoryItem pProfile, java.util.Map pExtraParameters) throws atg.commerce.pricing.PricingException
priceItem
in class atg.commerce.pricing.ItemPriceCalculator
atg.commerce.pricing.PricingException
public void priceItem(atg.commerce.pricing.ItemPriceInfo pPriceQuote, atg.commerce.order.CommerceItem pItem, atg.repository.RepositoryItem pPricingModel, java.util.Locale pLocale, atg.repository.RepositoryItem pProfile, java.util.Map pExtraParameters) throws atg.commerce.pricing.PricingException
priceItem
in interface atg.commerce.pricing.ItemPricingCalculator
priceItem
in class atg.commerce.pricing.ItemPriceCalculator
atg.commerce.pricing.PricingException
priceItem(ReturnRequest, ItemPriceInfo, CommerceItem, Locale, RepositoryItem, Map)
public void priceItem(ReturnRequest pReturnRequest, atg.commerce.pricing.ItemPriceInfo pPriceQuote, atg.commerce.order.CommerceItem pItem, java.util.Locale pLocale, atg.repository.RepositoryItem pProfile, java.util.Map pExtraParameters) throws atg.commerce.pricing.PricingException
pReturnRequest
- the current return requestpPriceQuote
- the current item's price infopItem
- the current item being pricedpLocale
- the locale originally passed to priceItempProfile
- the profile originally passed to priceItempExtraParameters
- the extra parameters map passed to priceItem
atg.commerce.pricing.PricingException
ReturnTools.adjustExchangeItemPriceInfo(ReturnRequest, CommerceItem, ItemPriceInfo)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |