|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.droplet.EmptyFormHandler
atg.droplet.GenericFormHandler
atg.commerce.order.purchase.PurchaseProcessFormHandler
atg.commerce.order.purchase.CommitOrderFormHandler
atg.commerce.csr.order.CSRCommitOrderFormHandler
public class CSRCommitOrderFormHandler
This extends the CommitOrderFormHandler to allow the CSR to log a comment when committing a new order.
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 |
---|
public static final java.lang.String MY_RESOURCE_NAME
public static final java.lang.String CLASS_VERSION
public static final java.lang.String MSG_SAVE_ERROR
public static final java.lang.String ERROR_WHILE_FETCHING_PRICE_LIST
public static final java.lang.String MSG_ORDER_ALREADY_SAVED
public static final java.lang.String MSG_SEND_MANUAL_CONFIRMATION_ERROR
public static final java.lang.String NEW_ORDER_TEMPLATE_NAME
public static final java.lang.String ORDER_UPDATE_TEMPLATE_NAME
public static final java.lang.String ORDER_EXCHANGE_TEMPLATE_NAME
public static final java.lang.String ORDER_RETURN_TEMPLATE_NAME
protected java.lang.String mConcurrentUpdateErrorURL
protected CSRCloneEditManager mCloneEditManager
protected java.lang.String mCommitOrderUpdatesSuccessURL
protected java.lang.String mCommitOrderUpdatesErrorURL
protected CSRAgentMessagingTools mAgentMessagingTools
protected CSRAgentTools mCSRAgentTools
protected java.lang.String mComment
protected boolean mAutoSendEmail
protected boolean mAutoEmailSent
protected java.lang.String mConfirmationToAddress
protected java.lang.String mTemplateToUse
protected java.lang.String mReturnsDataHolderPath
Constructor Detail |
---|
public CSRCommitOrderFormHandler()
CommitOrderFormHandler
instance.
Method Detail |
---|
public java.lang.String getConcurrentUpdateErrorURL()
public void setConcurrentUpdateErrorURL(java.lang.String pConcurrentUpdateErrorURL)
public CSRCloneEditManager getCloneEditManager()
public void setCloneEditManager(CSRCloneEditManager pCloneEditManager)
public void setCommitOrderUpdatesSuccessURL(java.lang.String pCommitOrderUpdatesSuccessURL)
pCommitOrderUpdatesSuccessURL
- a String
valuepublic java.lang.String getCommitOrderUpdatesSuccessURL()
String
valuepublic void setCommitOrderUpdatesErrorURL(java.lang.String pCommitOrderUpdatesErrorURL)
pCommitOrderUpdatesErrorURL
- a String
valuepublic java.lang.String getCommitOrderUpdatesErrorURL()
String
valuepublic void setAgentMessagingTools(CSRAgentMessagingTools pAgentMessagingTools)
pAgentMessagingTools
- public CSRAgentMessagingTools getAgentMessagingTools()
public void setCSRAgentTools(CSRAgentTools pCSRAgentTools)
public CSRAgentTools getCSRAgentTools()
public void setComment(java.lang.String pComment)
pComment
- a String
valuepublic java.lang.String getComment()
String
valuepublic boolean isAutoSendEmail()
public void setAutoSendEmail(boolean pAutoSendEmail)
pAutoSendEmail
- The AutoSendEmail to setpublic boolean isAutoEmailSent()
public void setAutoEmailSent(boolean pAutoEmailSent)
pAutoEmailSent
- The IsEmailSent to setpublic java.lang.String getConfirmationToAddress()
public void setConfirmationToAddress(java.lang.String pConfirmationToAddress)
pConfirmationToAddress
- The ConfirmationToAddress to setpublic java.lang.String getReturnsDataHolderPath()
public void setReturnsDataHolderPath(java.lang.String pReturnsDataHolderPath)
pReturnsDataHolderPath
- The ReturnsDataHolderPath to setpublic 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
Then the superclass implementation is called.
processException
in class atg.commerce.order.purchase.PurchaseProcessFormHandler
javax.servlet.ServletException
java.io.IOException
public void postCommitOrder(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
postCommitOrder
in class atg.commerce.order.purchase.CommitOrderFormHandler
pRequest
- the request objectpResponse
- the response object
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occurspublic void preSendConfirmationMessage(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public void postSendConfirmationMessage(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public void preCommitOrderUpdates(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public void postCommitOrderUpdates(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- pResponse
-
javax.servlet.ServletException
java.io.IOException
public void commitOrderUpdates() throws atg.commerce.CommerceException
atg.commerce.CommerceException
CloneEditManager.reconcileOrder(CloneEditState, Map)
public void sendConfirmationMessage(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
atg.userprofiling.email.TemplateEmailException
- - If an error occured sending the message.public boolean handleCommitOrderUpdates(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- pResponse
-
javax.servlet.ServletException
java.io.IOException
protected void processConcurrentUpdateException(java.lang.Exception pException)
concurrentUpdateErrorURL
pException
- public boolean handleSendConfirmationMessage(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- pResponse
-
javax.servlet.ServletException
java.io.IOException
public void prePersistOrder(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- pResponse
-
javax.servlet.ServletException
java.io.IOException
public void postPersistOrder(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- pResponse
-
javax.servlet.ServletException
java.io.IOException
public void persistOrder(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
CSRAgentTools.persistCurrentOrder();
public boolean handlePersistOrder(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- pResponse
-
javax.servlet.ServletException
java.io.IOException
protected atg.repository.RepositoryItem getPriceList()
CSREnvironmentTools.getCurrentPriceList()
and returns the current
pricelist.
getPriceList
in class atg.commerce.order.purchase.PurchaseProcessFormHandler
RepositoryItem
atg.commerce.csr.util.CSREnvironmentTools.getCurrentPriceList()
public ReturnsDataHolder getReturnsDataHolder()
public java.util.Locale getUserLocale(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
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.
getUserLocale
in class atg.commerce.order.purchase.PurchaseProcessFormHandler
pRequest
- a DynamoHttpServletRequest
valuepResponse
- a DynamoHttpServletResponse
value
Locale
value
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occursCSRAgentTools.getActiveCustomerPricingLocale()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |