atg.projects.store.order
Class StoreOrderHolder

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.logging.ApplicationLoggingImpl
          extended by atg.commerce.order.OrderHolder
              extended by atg.projects.store.order.StoreOrderHolder
All Implemented Interfaces:
atg.nucleus.logging.ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, atg.servlet.sessionsaver.Restoreable

public class StoreOrderHolder
extends atg.commerce.order.OrderHolder

This is an EStore's extention to the ShoppingCart component. This extention can set a copy of some order as current, instead of creating a new empty order.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string.
static java.lang.String LOGOUT_ORDER_ID
          This constant specifies a request parameter name, parameter with this name contains an order ID to be cloned.
 
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
StoreOrderHolder()
           
 
Method Summary
 atg.commerce.order.Order getCurrent()
          This method returns a current order (or shopping cart).
 atg.servlet.DynamoHttpServletRequest getCurrentRequest()
          This method is a shortcut to the ServletUtil.getCurrentRequest() method.
 
Methods inherited from class atg.commerce.order.OrderHolder
createInitialOrder, deleteOrder, getCurrent, getFailoverRecoveryPricingOperation, getHandlerOrderId, getLast, getLoggingIdentifier, getMessageSender, getOrderManager, getOrderType, getProfile, getProfileTools, getRestorableOrders, getSaved, getTransactionManager, handleCreate, handleDelete, handleDeleteAll, handleSwitch, isCurrentEmpty, isCurrentExists, isCurrentTransient, isEmpty, isPersistOrders, isPersistOrdersForAnonymousUsers, isRepriceAfterFailoverRecovery, isSavedEmpty, isSaveEmptyOrders, removeSavedOrder, repriceRestoredShoppingCart, repriceRestoredShoppingCarts, resetOrderProfileId, sendScenarioEvent, sendSwitchOrderMessage, sessionRestored, setCurrent, setFailoverRecoveryPricingOperation, setHandlerOrderId, setLast, setLoggingIdentifier, setMessageSender, setOrderManager, setOrderType, setPersistOrders, setPersistOrdersForAnonymousUsers, setProfile, setProfileTools, setRepriceAfterFailoverRecovery, setRestorableOrders, setSaved, setSaveEmptyOrders, setTransactionManager, shouldSaveOnSwitch, switchCurrentOrder, validActiveShoppingCart, validRestoredShoppingCart
 
Methods inherited from class atg.nucleus.logging.ApplicationLoggingImpl
addGlobalLogListeners, addLogListener, getLoggingForVlogging, getLoggingIdentifer, getLogListenerCount, getLogListeners, initializeFromServiceEvent, isAutoInitListeners, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, removeLogListener, sendLogEvent, setAutoInitListeners, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning
 
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

LOGOUT_ORDER_ID

public static final java.lang.String LOGOUT_ORDER_ID
This constant specifies a request parameter name, parameter with this name contains an order ID to be cloned.

See Also:
Constant Field Values
Constructor Detail

StoreOrderHolder

public StoreOrderHolder()
Method Detail

getCurrentRequest

public atg.servlet.DynamoHttpServletRequest getCurrentRequest()
This method is a shortcut to the ServletUtil.getCurrentRequest() method.

Returns:
current HTTP request.

getCurrent

public atg.commerce.order.Order getCurrent()
This method returns a current order (or shopping cart).
If there is a shopping cart loaded already, it will be returned. If no shopping cart yet loaded and there is an order ID specified with the LOGOUT_ORDER_ID request property, there will be created a copy of the order specified and set as shopping cart.
If no order ID specified or unable to create a copy, some saved order will become a shopping cart. If the system can't find appropriate order, it will create a new instance.

Overrides:
getCurrent in class atg.commerce.order.OrderHolder
Returns:
current shopping cart's Order instance.
See Also:
OrderHolder.getCurrent()