|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.logging.ApplicationLoggingImpl
atg.commerce.order.OrderHolder
atg.commerce.csr.order.ViewOrderHolder
atg.commerce.csr.order.CSROrderHolder
public class CSROrderHolder
This class extends ViewOrderHolder to provide functionality for the active working order.
ViewOrderHolder| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
|
protected CloneEditState |
mCloneEditState
|
protected java.util.List |
mItemPriceSources
|
protected long |
mLoadTime
|
| 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 | |
|---|---|
CSROrderHolder()
|
|
| Method Summary | |
|---|---|
protected atg.commerce.order.Order |
createInitialOrder(atg.repository.RepositoryItem pProfile)
This method executes its super class's createInitialOrder(RepositoryItem pProfile)
|
protected CSRCloneEditManager |
getCloneEditManager()
Returns the clone edit manager used to manage changes to a submitted order |
CloneEditState |
getCloneEditState()
Contains the CloneEditState object when editing an order that's in a "submitted" state. |
CSRAgentTools |
getCSRAgentTools()
Returns the CSR tools component |
atg.commerce.order.Order |
getCurrent()
Overrides base behavior to bypass the automatically price the order when it contains commerce items without price infos. |
java.util.List |
getItemPriceSources()
Returns the List of ItemPriceSource objects
that should be used to price the current order. |
long |
getLoadTime()
|
atg.commerce.order.Order |
getOriginalOrder()
This method returns the original order if the holder is in clone edit mode. |
ReturnRequest |
getReturnRequest()
|
boolean |
isCloneEditMode()
This method indicates if the cart is current in clone edit mode. |
void |
loadOrder(atg.commerce.order.Order pOrder)
Loads the order into the cart. |
protected void |
recreatePriceInfos(atg.commerce.order.Order pOrder)
Deprecated. in favor of OrderPricingRecovery pipeline servlet |
void |
sessionRestored()
Extends the base behavior to restore the CloneEditState's cloneOrder to the current order when in clone edit mode. |
void |
setCloneEditManager(CSRCloneEditManager pCloneEditManager)
|
void |
setCloneEditState(CloneEditState pCloneEditState)
|
void |
setCSRAgentTools(CSRAgentTools pAgentTools)
|
void |
setCurrent(atg.commerce.order.Order pCurrent)
Override setCurrent to set shippingGroupMapContainerInitialized = false for a new order |
void |
setItemPriceSources(java.util.List pItemPriceSources)
|
void |
setLoadTime(long pLoadTime)
Returns the time of the current order was loaded |
void |
setReturnRequest(ReturnRequest pReturnRequest)
Sets return request associated with the current order |
protected boolean |
shouldCloneOrder(atg.commerce.order.Order pOrder)
Determines if the given Order< should use clone edit mode
when being loading into the holder. |
protected boolean |
validActiveShoppingCart(atg.commerce.order.Order pOrder)
Override validActiveShoppingCart to allow all orders to be valid. |
| Methods inherited from class atg.commerce.csr.order.ViewOrderHolder |
|---|
getOrderId |
| Methods inherited from class atg.commerce.order.OrderHolder |
|---|
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, setFailoverRecoveryPricingOperation, setHandlerOrderId, setLast, setLoggingIdentifier, setMessageSender, setOrderManager, setOrderType, setPersistOrders, setPersistOrdersForAnonymousUsers, setProfile, setProfileTools, setRepriceAfterFailoverRecovery, setRestorableOrders, setSaved, setSaveEmptyOrders, setTransactionManager, shouldSaveOnSwitch, switchCurrentOrder, 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 |
|---|
public static final java.lang.String CLASS_VERSION
protected java.util.List mItemPriceSources
protected CloneEditState mCloneEditState
protected long mLoadTime
| Constructor Detail |
|---|
public CSROrderHolder()
| Method Detail |
|---|
public java.util.List getItemPriceSources()
ItemPriceSource objects
that should be used to price the current order.
This List is passed to all pricing operations against the current working order through the extra parameter Map.
This property is set by the CSREnvironmentMonitor when loading
submitted orders to be modified.
public void setItemPriceSources(java.util.List pItemPriceSources)
protected CSRCloneEditManager getCloneEditManager()
public void setCloneEditManager(CSRCloneEditManager pCloneEditManager)
public CSRAgentTools getCSRAgentTools()
public void setCSRAgentTools(CSRAgentTools pAgentTools)
public CloneEditState getCloneEditState()
public void setCloneEditState(CloneEditState pCloneEditState)
public void setLoadTime(long pLoadTime)
pLoadTime - public long getLoadTime()
public void setReturnRequest(ReturnRequest pReturnRequest)
pReturnRequest - the return request associated with the current orderpublic ReturnRequest getReturnRequest()
public void setCurrent(atg.commerce.order.Order pCurrent)
setCurrent in class atg.commerce.order.OrderHolderpublic atg.commerce.order.Order getCurrent()
getCurrent in class ViewOrderHolderrecreatePriceInfos(Order)protected void recreatePriceInfos(atg.commerce.order.Order pOrder)
pOrder - OrderPricingRecoveryprotected boolean validActiveShoppingCart(atg.commerce.order.Order pOrder)
validActiveShoppingCart in class atg.commerce.order.OrderHolderpublic boolean isCloneEditMode()
public atg.commerce.order.Order getOriginalOrder()
public void loadOrder(atg.commerce.order.Order pOrder)
throws atg.repository.RepositoryException,
atg.commerce.CommerceException
If clone editing is initializes the CloneEditState object is created and saved using the CloneEditState property, the originalOrder property is set to pOrder and current is set the clone order.
atg.repository.RepositoryException
atg.commerce.CommerceExceptionCloneEditManager.initializeOrderEdit(Order)protected boolean shouldCloneOrder(atg.commerce.order.Order pOrder)
Order< should use clone edit mode
when being loading into the holder.
returns true if the order is in a clone edit state as determined by
the
isCloneEditState method AND is considered modifiable
as returned by the isOrderModifiable method
pOrder -
protected atg.commerce.order.Order createInitialOrder(atg.repository.RepositoryItem pProfile)
throws atg.commerce.CommerceException
createInitialOrder(RepositoryItem pProfile)
createInitialOrder in class atg.commerce.order.OrderHolderpProfile -
atg.commerce.CommerceExceptionpublic void sessionRestored()
sessionRestored in interface atg.servlet.sessionsaver.RestoreablesessionRestored in class atg.commerce.order.OrderHolder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||