atg.commerce.csr.order
Class CSRCommitOrderFormHandler

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.droplet.EmptyFormHandler
              extended by atg.droplet.GenericFormHandler
                  extended by atg.commerce.order.purchase.PurchaseProcessFormHandler
                      extended by atg.commerce.order.purchase.CommitOrderFormHandler
                          extended by atg.commerce.csr.order.CSRCommitOrderFormHandler
All Implemented Interfaces:
atg.commerce.util.PipelineErrorHandler, atg.droplet.DropletFormHandler, 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 CSRCommitOrderFormHandler
extends atg.commerce.order.purchase.CommitOrderFormHandler

This extends the CommitOrderFormHandler to allow the CSR to log a comment when committing a new order.

See Also:
CommitOrderFormHandler, PurchaseProcessFormHandler

Field Summary
static java.lang.String CLASS_VERSION
           
static java.lang.String ERROR_WHILE_FETCHING_PRICE_LIST
           
protected  CSRAgentMessagingTools mAgentMessagingTools
           
protected  boolean mAutoEmailSent
           
protected  boolean mAutoSendEmail
           
protected  CSRCloneEditManager mCloneEditManager
           
protected  java.lang.String mComment
           
protected  java.lang.String mCommitOrderUpdatesErrorURL
           
protected  java.lang.String mCommitOrderUpdatesSuccessURL
           
protected  java.lang.String mConcurrentUpdateErrorURL
           
protected  java.lang.String mConfirmationToAddress
           
protected  CSRAgentTools mCSRAgentTools
           
protected  java.lang.String mReturnsDataHolderPath
           
static java.lang.String MSG_ORDER_ALREADY_SAVED
           
static java.lang.String MSG_SAVE_ERROR
           
static java.lang.String MSG_SEND_MANUAL_CONFIRMATION_ERROR
           
protected  java.lang.String mTemplateToUse
           
static java.lang.String MY_RESOURCE_NAME
           
static java.lang.String NEW_ORDER_TEMPLATE_NAME
           
static java.lang.String ORDER_EXCHANGE_TEMPLATE_NAME
           
static java.lang.String ORDER_RETURN_TEMPLATE_NAME
           
static java.lang.String ORDER_UPDATE_TEMPLATE_NAME
           
 
Fields inherited from class atg.commerce.order.purchase.CommitOrderFormHandler
MSG_COMMIT_ERROR, MSG_ORDER_ALREADY_SUBMITTED, MSG_ORDER_EMPTY, MSG_ORDER_NOT_CURRENT
 
Fields inherited from class atg.commerce.order.purchase.PurchaseProcessFormHandler
LOCK_NAME_ATTRIBUTE_NAME, PARAM_TRANSACTION_CREATED, PARAM_VALUE_TRUE
 
Fields inherited from class atg.droplet.GenericFormHandler
PARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDS
 
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
CSRCommitOrderFormHandler()
          Creates a new CommitOrderFormHandler instance.
 
Method Summary
 void commitOrderUpdates()
          Reconciles the clone with the original order
 CSRAgentMessagingTools getAgentMessagingTools()
          Returns component for sending agent messages
 CSRCloneEditManager getCloneEditManager()
           
 java.lang.String getComment()
          Return the Comment property.
 java.lang.String getCommitOrderUpdatesErrorURL()
          Returns property CommitOrderUpdatesErrorURL
 java.lang.String getCommitOrderUpdatesSuccessURL()
          Returns property CommitOrderUpdatesSuccessURL
 java.lang.String getConcurrentUpdateErrorURL()
          returns the URL used when there's an concurrent update exception during the reconciliation process.
 java.lang.String getConfirmationToAddress()
          Gets the ConfirmationToAddress
 CSRAgentTools getCSRAgentTools()
           
protected  atg.repository.RepositoryItem getPriceList()
          This method over-rides the core commerce form handler method.
 ReturnsDataHolder getReturnsDataHolder()
          Resolves the requested dataholder
 java.lang.String getReturnsDataHolderPath()
          Gets the ReturnsDataHolderPath
 java.util.Locale getUserLocale(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          This method over-rides the core commerce method and calls CSRAgentTools.getActiveCustomerPricingLocale() to get the locale.
 boolean handleCommitOrderUpdates(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Reconciles a clone order with the original.
 boolean handlePersistOrder(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Persists the current order in the cart.
 boolean handleSendConfirmationMessage(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Sends a confirmation email message
 boolean isAutoEmailSent()
          Gets the EmailSent
 boolean isAutoSendEmail()
          Gets the AutoSendEmail
 void persistOrder(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Called to persist the current order.
 void postCommitOrder(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Called after any processing is done by the handleCommitOrder method.
 void postCommitOrderUpdates(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          If there are no errors, this method initializes a new order in the order holder.
 void postPersistOrder(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Called after persisting the order
 void postSendConfirmationMessage(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
           
 void preCommitOrderUpdates(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
           
 void prePersistOrder(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Called prior to persisting the order
 void preSendConfirmationMessage(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
           
protected  void processConcurrentUpdateException(java.lang.Exception pException)
          Adds a form error specific to concurrent update problem, puts new order is put into global context and sets the error url from property concurrentUpdateErrorURL
 void processException(java.lang.Exception pException, java.lang.String pMsgId, atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          This extension will walk the chain of ContainableExceptions and add the last one's message text as a form exception so it'll appear in the ui.
 void sendConfirmationMessage(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Send the confirmation message using the the CSRAgentTools component.
 void setAgentMessagingTools(CSRAgentMessagingTools pAgentMessagingTools)
          Sets the component for sending agent messages
 void setAutoEmailSent(boolean pAutoEmailSent)
          Sets the EmailSent
 void setAutoSendEmail(boolean pAutoSendEmail)
          Sets the AutoSendEmail
 void setCloneEditManager(CSRCloneEditManager pCloneEditManager)
           
 void setComment(java.lang.String pComment)
          Set the comment property.
 void setCommitOrderUpdatesErrorURL(java.lang.String pCommitOrderUpdatesErrorURL)
          Sets property CommitOrderUpdatesErrorURL
 void setCommitOrderUpdatesSuccessURL(java.lang.String pCommitOrderUpdatesSuccessURL)
          Sets property CommitOrderUpdatesSuccessURL
 void setConcurrentUpdateErrorURL(java.lang.String pConcurrentUpdateErrorURL)
           
 void setConfirmationToAddress(java.lang.String pConfirmationToAddress)
          Sets the ConfirmationToAddress
 void setCSRAgentTools(CSRAgentTools pCSRAgentTools)
          Sets the property CSRAgentTools.
 void setReturnsDataHolderPath(java.lang.String pReturnsDataHolderPath)
          Sets the ReturnsDataHolderPath
 
Methods inherited from class atg.commerce.order.purchase.CommitOrderFormHandler
getAllowEmptyOrders, getCommitOrderErrorURL, getCommitOrderSuccessURL, getOrderId, handleCommitOrder, preCommitOrder, setAllowEmptyOrders, setCommitOrderErrorURL, setCommitOrderSuccessURL, setOrderId
 
Methods inherited from class atg.commerce.order.purchase.PurchaseProcessFormHandler
acquireTransactionLock, acquireTransactionLock, afterSet, beforeSet, checkFormRedirect, commitTransaction, copyConfiguration, createRepriceParameterMap, defaultLocalLockManager, defaultUserProfile, doStartService, ensureTransaction, formatUserMessage, formatUserMessage, formatUserMessage, formatUserMessage, generatePropertyPath, getClaimableManager, getCommerceIdentifierPaymentInfoContainer, getCommerceItemManager, getCommerceItemShippingInfoContainer, getCommerceProfileTools, getCommercePropertyManager, getConfiguration, getCurrentTransaction, getDefaultLocale, getGiftlistManager, getHandlingInstructionManager, getLocalLockManager, getOrder, getOrderManager, getPaymentGroupManager, getPaymentGroupMapContainer, getPipelineManager, getPriceListId, getPriceListManager, getProfile, getProfileRepository, getPurchaseProcessHelper, getRepeatingRequestMonitor, getRepriceOrderChainId, getResourceBundle, getResourceBundleName, getSessionExpirationURL, getShippingGroupManager, getShippingGroupMapContainer, getShoppingCart, getTransactionManager, getUserLocale, getUserPricingModels, handlePipelineError, isEnsureTransaction, isFormSubmission, isTransactionCreated, isTransactionMarkedAsRollBack, isUseLocksAroundTransactions, isUseRequestLocale, processPipelineErrors, releaseTransactionLock, releaseTransactionLock, runProcess, runProcess, runProcess, runProcessRepriceOrder, runProcessRepriceOrder, runRepricingProcess, setClaimableManager, setCommerceIdentifierPaymentInfoContainer, setCommerceItemManager, setCommerceItemShippingInfoContainer, setCommerceProfileTools, setCommercePropertyManager, setConfiguration, setCurrentTransaction, setDefaultLocale, setEnsureTransaction, setGiftlistManager, setHandlingInstructionManager, setLocalLockManager, setOrder, setOrderManager, setPaymentGroupManager, setPaymentGroupMapContainer, setPipelineManager, setPriceListId, setPriceListManager, setProfile, setProfileRepository, setPurchaseProcessHelper, setRepeatingRequestMonitor, setRepriceOrderChainId, setSessionExpirationURL, setShippingGroupManager, setShippingGroupMapContainer, setShoppingCart, setTransactionCreated, setTransactionManager, setTransactionToRollbackOnly, setUseLocksAroundTransactions, setUseRequestLocale, setUserLocale, setUserPricingModels, transactionLockName, unsetTransactionCreated
 
Methods inherited from class atg.droplet.GenericFormHandler
addFormException, addUncheckedFormException, createFormSubmissionMessage, getCancelURL, getCheckForValidSession, getFormError, getFormExceptions, getFormName, getMessagePort, getMessageSource, getMessageType, getPropertyExceptions, getSendMessages, getUncheckedFormExceptions, handleCancel, handleFormException, handleUncheckedFormException, hasUncheckedFormExceptions, isDeferForwardsAndRedirects, isRestorableForm, isUseForwards, isValidSession, redirectOrForward, resetFormExceptions, setCancelURL, setCheckForValidSession, setDeferForwardsAndRedirects, setFormName, setMessagePort, setMessageSource, setMessageType, setRestorableForm, setSendMessages, setUseForwards
 
Methods inherited from class atg.droplet.EmptyFormHandler
afterGet, beforeGet
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, 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

MY_RESOURCE_NAME

public static final java.lang.String MY_RESOURCE_NAME
See Also:
Constant Field Values

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
See Also:
Constant Field Values

MSG_SAVE_ERROR

public static final java.lang.String MSG_SAVE_ERROR
See Also:
Constant Field Values

ERROR_WHILE_FETCHING_PRICE_LIST

public static final java.lang.String ERROR_WHILE_FETCHING_PRICE_LIST
See Also:
Constant Field Values

MSG_ORDER_ALREADY_SAVED

public static final java.lang.String MSG_ORDER_ALREADY_SAVED
See Also:
Constant Field Values

MSG_SEND_MANUAL_CONFIRMATION_ERROR

public static final java.lang.String MSG_SEND_MANUAL_CONFIRMATION_ERROR
See Also:
Constant Field Values

NEW_ORDER_TEMPLATE_NAME

public static final java.lang.String NEW_ORDER_TEMPLATE_NAME
See Also:
Constant Field Values

ORDER_UPDATE_TEMPLATE_NAME

public static final java.lang.String ORDER_UPDATE_TEMPLATE_NAME
See Also:
Constant Field Values

ORDER_EXCHANGE_TEMPLATE_NAME

public static final java.lang.String ORDER_EXCHANGE_TEMPLATE_NAME
See Also:
Constant Field Values

ORDER_RETURN_TEMPLATE_NAME

public static final java.lang.String ORDER_RETURN_TEMPLATE_NAME
See Also:
Constant Field Values

mConcurrentUpdateErrorURL

protected java.lang.String mConcurrentUpdateErrorURL

mCloneEditManager

protected CSRCloneEditManager mCloneEditManager

mCommitOrderUpdatesSuccessURL

protected java.lang.String mCommitOrderUpdatesSuccessURL

mCommitOrderUpdatesErrorURL

protected java.lang.String mCommitOrderUpdatesErrorURL

mAgentMessagingTools

protected CSRAgentMessagingTools mAgentMessagingTools

mCSRAgentTools

protected CSRAgentTools mCSRAgentTools

mComment

protected java.lang.String mComment

mAutoSendEmail

protected boolean mAutoSendEmail

mAutoEmailSent

protected boolean mAutoEmailSent

mConfirmationToAddress

protected java.lang.String mConfirmationToAddress

mTemplateToUse

protected java.lang.String mTemplateToUse

mReturnsDataHolderPath

protected java.lang.String mReturnsDataHolderPath
Constructor Detail

CSRCommitOrderFormHandler

public CSRCommitOrderFormHandler()
Creates a new CommitOrderFormHandler instance.

Method Detail

getConcurrentUpdateErrorURL

public java.lang.String getConcurrentUpdateErrorURL()
returns the URL used when there's an concurrent update exception during the reconciliation process.


setConcurrentUpdateErrorURL

public void setConcurrentUpdateErrorURL(java.lang.String pConcurrentUpdateErrorURL)

getCloneEditManager

public CSRCloneEditManager getCloneEditManager()
Returns:
the clone edit manager component instance

setCloneEditManager

public void setCloneEditManager(CSRCloneEditManager pCloneEditManager)

setCommitOrderUpdatesSuccessURL

public void setCommitOrderUpdatesSuccessURL(java.lang.String pCommitOrderUpdatesSuccessURL)
Sets property CommitOrderUpdatesSuccessURL

Parameters:
pCommitOrderUpdatesSuccessURL - a String value

getCommitOrderUpdatesSuccessURL

public java.lang.String getCommitOrderUpdatesSuccessURL()
Returns property CommitOrderUpdatesSuccessURL

Returns:
a String value

setCommitOrderUpdatesErrorURL

public void setCommitOrderUpdatesErrorURL(java.lang.String pCommitOrderUpdatesErrorURL)
Sets property CommitOrderUpdatesErrorURL

Parameters:
pCommitOrderUpdatesErrorURL - a String value

getCommitOrderUpdatesErrorURL

public java.lang.String getCommitOrderUpdatesErrorURL()
Returns property CommitOrderUpdatesErrorURL

Returns:
a String value

setAgentMessagingTools

public void setAgentMessagingTools(CSRAgentMessagingTools pAgentMessagingTools)
Sets the component for sending agent messages

Parameters:
pAgentMessagingTools -

getAgentMessagingTools

public CSRAgentMessagingTools getAgentMessagingTools()
Returns component for sending agent messages

Returns:
AgentMessagingTools

setCSRAgentTools

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


getCSRAgentTools

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

setComment

public void setComment(java.lang.String pComment)
Set the comment property.

Parameters:
pComment - a String value

getComment

public java.lang.String getComment()
Return the Comment property.

Returns:
a String value

isAutoSendEmail

public boolean isAutoSendEmail()
Gets the AutoSendEmail

Returns:
the AutoSendEmail

setAutoSendEmail

public void setAutoSendEmail(boolean pAutoSendEmail)
Sets the AutoSendEmail

Parameters:
pAutoSendEmail - The AutoSendEmail to set

isAutoEmailSent

public boolean isAutoEmailSent()
Gets the EmailSent

Returns:
the EmailSent

setAutoEmailSent

public void setAutoEmailSent(boolean pAutoEmailSent)
Sets the EmailSent

Parameters:
pAutoEmailSent - The IsEmailSent to set

getConfirmationToAddress

public java.lang.String getConfirmationToAddress()
Gets the ConfirmationToAddress

Returns:
the ConfirmationToAddress

setConfirmationToAddress

public void setConfirmationToAddress(java.lang.String pConfirmationToAddress)
Sets the ConfirmationToAddress

Parameters:
pConfirmationToAddress - The ConfirmationToAddress to set

getReturnsDataHolderPath

public java.lang.String getReturnsDataHolderPath()
Gets the ReturnsDataHolderPath

Returns:
the ReturnsDataHolderPath

setReturnsDataHolderPath

public void setReturnsDataHolderPath(java.lang.String pReturnsDataHolderPath)
Sets the ReturnsDataHolderPath

Parameters:
pReturnsDataHolderPath - The ReturnsDataHolderPath to set

processException

public void processException(java.lang.Exception pException,
                             java.lang.String pMsgId,
                             atg.servlet.DynamoHttpServletRequest pRequest,
                             atg.servlet.DynamoHttpServletResponse pResponse)
                      throws javax.servlet.ServletException,
                             java.io.IOException
This extension will walk the chain of ContainableExceptions and add the last one's message text as a form exception so it'll appear in the ui.

Then the superclass implementation is called.

Overrides:
processException in class atg.commerce.order.purchase.PurchaseProcessFormHandler
Throws:
javax.servlet.ServletException
java.io.IOException

postCommitOrder

public void postCommitOrder(atg.servlet.DynamoHttpServletRequest pRequest,
                            atg.servlet.DynamoHttpServletResponse pResponse)
                     throws javax.servlet.ServletException,
                            java.io.IOException
Called after any processing is done by the handleCommitOrder method. This logs the comment submitted by the CSR

Overrides:
postCommitOrder in class atg.commerce.order.purchase.CommitOrderFormHandler
Parameters:
pRequest - the request object
pResponse - the response object
Throws:
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs

preSendConfirmationMessage

public void preSendConfirmationMessage(atg.servlet.DynamoHttpServletRequest pRequest,
                                       atg.servlet.DynamoHttpServletResponse pResponse)
                                throws javax.servlet.ServletException,
                                       java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

postSendConfirmationMessage

public void postSendConfirmationMessage(atg.servlet.DynamoHttpServletRequest pRequest,
                                        atg.servlet.DynamoHttpServletResponse pResponse)
                                 throws javax.servlet.ServletException,
                                        java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

preCommitOrderUpdates

public void preCommitOrderUpdates(atg.servlet.DynamoHttpServletRequest pRequest,
                                  atg.servlet.DynamoHttpServletResponse pResponse)
                           throws javax.servlet.ServletException,
                                  java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

postCommitOrderUpdates

public void postCommitOrderUpdates(atg.servlet.DynamoHttpServletRequest pRequest,
                                   atg.servlet.DynamoHttpServletResponse pResponse)
                            throws javax.servlet.ServletException,
                                   java.io.IOException
If there are no errors, this method initializes a new order in the order holder.

Parameters:
pRequest -
pResponse -
Throws:
javax.servlet.ServletException
java.io.IOException

commitOrderUpdates

public void commitOrderUpdates()
                        throws atg.commerce.CommerceException
Reconciles the clone with the original order

Throws:
atg.commerce.CommerceException
See Also:
CloneEditManager.reconcileOrder(CloneEditState, Map)

sendConfirmationMessage

public void sendConfirmationMessage(atg.servlet.DynamoHttpServletRequest pRequest,
                                    atg.servlet.DynamoHttpServletResponse pResponse)
Send the confirmation message using the the CSRAgentTools component.

Throws:
atg.userprofiling.email.TemplateEmailException - - If an error occured sending the message.

handleCommitOrderUpdates

public boolean handleCommitOrderUpdates(atg.servlet.DynamoHttpServletRequest pRequest,
                                        atg.servlet.DynamoHttpServletResponse pResponse)
                                 throws javax.servlet.ServletException,
                                        java.io.IOException
Reconciles a clone order with the original.

Parameters:
pRequest -
pResponse -
Returns:
Throws:
javax.servlet.ServletException
java.io.IOException

processConcurrentUpdateException

protected void processConcurrentUpdateException(java.lang.Exception pException)
Adds a form error specific to concurrent update problem, puts new order is put into global context and sets the error url from property concurrentUpdateErrorURL

Parameters:
pException -

handleSendConfirmationMessage

public boolean handleSendConfirmationMessage(atg.servlet.DynamoHttpServletRequest pRequest,
                                             atg.servlet.DynamoHttpServletResponse pResponse)
                                      throws javax.servlet.ServletException,
                                             java.io.IOException
Sends a confirmation email message

Parameters:
pRequest -
pResponse -
Returns:
Throws:
javax.servlet.ServletException
java.io.IOException

prePersistOrder

public void prePersistOrder(atg.servlet.DynamoHttpServletRequest pRequest,
                            atg.servlet.DynamoHttpServletResponse pResponse)
                     throws javax.servlet.ServletException,
                            java.io.IOException
Called prior to persisting the order

Parameters:
pRequest -
pResponse -
Throws:
javax.servlet.ServletException
java.io.IOException

postPersistOrder

public void postPersistOrder(atg.servlet.DynamoHttpServletRequest pRequest,
                             atg.servlet.DynamoHttpServletResponse pResponse)
                      throws javax.servlet.ServletException,
                             java.io.IOException
Called after persisting the order

Parameters:
pRequest -
pResponse -
Throws:
javax.servlet.ServletException
java.io.IOException

persistOrder

public void persistOrder(atg.servlet.DynamoHttpServletRequest pRequest,
                         atg.servlet.DynamoHttpServletResponse pResponse)
                  throws javax.servlet.ServletException,
                         java.io.IOException
Called to persist the current order.

Throws:
javax.servlet.ServletException
java.io.IOException
See Also:
CSRAgentTools.persistCurrentOrder();

handlePersistOrder

public boolean handlePersistOrder(atg.servlet.DynamoHttpServletRequest pRequest,
                                  atg.servlet.DynamoHttpServletResponse pResponse)
                           throws javax.servlet.ServletException,
                                  java.io.IOException
Persists the current order in the cart.

Parameters:
pRequest -
pResponse -
Returns:
Throws:
javax.servlet.ServletException
java.io.IOException

getPriceList

protected atg.repository.RepositoryItem getPriceList()
This method over-rides the core commerce form handler method. This method makes the call to CSREnvironmentTools.getCurrentPriceList() and returns the current pricelist.

Overrides:
getPriceList in class atg.commerce.order.purchase.PurchaseProcessFormHandler
Returns:
a RepositoryItem
See Also:
atg.commerce.csr.util.CSREnvironmentTools.getCurrentPriceList()

getReturnsDataHolder

public ReturnsDataHolder getReturnsDataHolder()
Resolves the requested dataholder

Returns:
ProgressBarItem

getUserLocale

public java.util.Locale getUserLocale(atg.servlet.DynamoHttpServletRequest pRequest,
                                      atg.servlet.DynamoHttpServletResponse pResponse)
                               throws javax.servlet.ServletException,
                                      java.io.IOException
This method over-rides the core commerce method and calls CSRAgentTools.getActiveCustomerPricingLocale() to get the locale. The CSC agents are working on a customer's orders. Because of the above reason, the application has to load customer's default locale.

Overrides:
getUserLocale in class atg.commerce.order.purchase.PurchaseProcessFormHandler
Parameters:
pRequest - a DynamoHttpServletRequest value
pResponse - a DynamoHttpServletResponse value
Returns:
a Locale value
Throws:
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
See Also:
CSRAgentTools.getActiveCustomerPricingLocale()