atg.commerce.csr.pricing
Class ExchangePricingModelHolder

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.commerce.pricing.PricingModelHolder
              extended by atg.commerce.csr.pricing.ExchangePricingModelHolder
All Implemented Interfaces:
atg.naming.AbsoluteNameable, atg.naming.NameContextBindingListener, atg.naming.NameContextElement, atg.naming.NameContextParentable, atg.naming.NameResolver, atg.nucleus.AdminableService, atg.nucleus.Configured, 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, java.util.EventListener

public class ExchangePricingModelHolder
extends atg.commerce.pricing.PricingModelHolder

CSC uses this holder to price the exchange order during a return.

This pricing model holder initializes itself with empty Collections for item, order, shipping and tax promotions.

It also prevents any reinitialization value other than -1 to be set since the promotions in this holder are manually controlled.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
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
ExchangePricingModelHolder()
           
 
Method Summary
 void initializePricingModels()
          Initializes the item, order and tax pricing model properties to null.
 void setReinitializeTime(long pReinitializeTime)
          Overrides the base behavior to ensure only -1 (never re-initialize) is set.
 
Methods inherited from class atg.commerce.pricing.PricingModelHolder
doStartService, getAllPromotions, getItemPricingEngine, getItemPricingModels, getOrderPricingEngine, getOrderPricingModels, getProfile, getPromotionTools, getReinitializeTime, getShippingPricingEngine, getShippingPricingModels, getTaxPricingEngine, getTaxPricingModels, initializeAllPromotions, initializeItemPricingModels, initializeOrderPricingModels, initializeShippingPricingModels, initializeTaxPricingModels, isEnableInit, isPromotionInHolder, setAllPromotions, setEnableInit, setItemPricingEngine, setItemPricingModels, setOrderPricingEngine, setOrderPricingModels, setProfile, setPromotionTools, setShippingPricingEngine, setShippingPricingModels, setTaxPricingEngine, setTaxPricingModels
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, 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

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

ExchangePricingModelHolder

public ExchangePricingModelHolder()
Method Detail

initializePricingModels

public void initializePricingModels()
Initializes the item, order and tax pricing model properties to null.

Shipping pricing models are loaded from the customer's active shipping promotions.

Overrides:
initializePricingModels in class atg.commerce.pricing.PricingModelHolder

setReinitializeTime

public void setReinitializeTime(long pReinitializeTime)
Overrides the base behavior to ensure only -1 (never re-initialize) is set.

Overrides:
setReinitializeTime in class atg.commerce.pricing.PricingModelHolder