atg.commerce.csr.pricing
Class SubmittedOrderPricingModelHolder

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.SubmittedOrderPricingModelHolder
All Implemented Interfaces:
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, java.util.EventListener

public class SubmittedOrderPricingModelHolder
extends atg.commerce.pricing.PricingModelHolder

This holder is used when an agent is working on an submitted order. It overrides the initialization process to load its promotions from the order (rather than the profile).


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
protected  CSRAgentTools mCSRAgentTools
           
 
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
SubmittedOrderPricingModelHolder()
           
 
Method Summary
 void addPromotion(atg.repository.RepositoryItem pPromotion)
          Adds a promotion to the holder.
 CSRAgentTools getCSRAgentTools()
           
 atg.commerce.order.Order getOrder()
          Return the Order property.
 atg.commerce.order.OrderHolder getShoppingCart()
          Returns property ShoppingCart
 void initializePricingModels()
          Reload the all pricing models for the order
 void setCSRAgentTools(CSRAgentTools pCSRAgentTools)
          Sets the property CSRAgentTools.
 void setOrder(atg.commerce.order.Order pOrder)
          Set the Order property.
 void setShoppingCart(atg.commerce.order.OrderHolder pShoppingCart)
          Sets property ShoppingCart
 
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, setReinitializeTime, 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 final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values

mCSRAgentTools

protected CSRAgentTools mCSRAgentTools
Constructor Detail

SubmittedOrderPricingModelHolder

public SubmittedOrderPricingModelHolder()
Method Detail

setShoppingCart

public void setShoppingCart(atg.commerce.order.OrderHolder pShoppingCart)
Sets property ShoppingCart

Parameters:
pShoppingCart - an OrderHolder value

getShoppingCart

public atg.commerce.order.OrderHolder getShoppingCart()
Returns property ShoppingCart

Returns:
an OrderHolder value

setOrder

public void setOrder(atg.commerce.order.Order pOrder)
Set the Order property.

Parameters:
pOrder - an Order value

getOrder

public atg.commerce.order.Order getOrder()
Return the Order property.

Returns:
an Order value

setCSRAgentTools

public void setCSRAgentTools(CSRAgentTools pCSRAgentTools)
Sets the property CSRAgentTools.


getCSRAgentTools

public CSRAgentTools getCSRAgentTools()
Returns:
The CSRAgentTools component used to manipulate the profile

initializePricingModels

public void initializePricingModels()
Reload the all pricing models for the order

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

addPromotion

public void addPromotion(atg.repository.RepositoryItem pPromotion)
Adds a promotion to the holder.

This method can be used to add a promotion to the holder without having to first add it to the profile's active promotions.

Parameters:
pPromotion - the promotion item to add to the holder