public class AppeasementFormHandler
extends atg.commerce.order.purchase.PurchaseProcessFormHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APPEASEMENT_AMOUNT |
static java.lang.String |
APPEASEMENT_ID |
static java.lang.String |
APPEASEMENT_PARAM_NAME |
static java.lang.String |
APPEASEMENT_REASON_CODE |
static java.lang.String |
APPEASEMENT_TYPE |
static java.lang.String |
CLASS_VERSION |
protected atg.userprofiling.Profile |
mAgentProfile |
protected atg.commerce.csr.appeasement.Appeasement |
mAppeasement |
protected atg.commerce.csr.order.appeasement.AppeasementManager |
mAppeasementManager |
protected java.lang.String |
mApplyAppeasementErrorURL |
protected java.lang.String |
mApplyAppeasementSuccessURL |
protected boolean |
mAutoSendEmail |
protected java.lang.String |
mCancelAppeasementErrorURL |
protected java.lang.String |
mCancelAppeasementSuccessURL |
protected ConfirmationInfo |
mConfirmationInfo |
protected java.lang.String |
mCreateAppeasementErrorURL |
protected java.lang.String |
mCreateAppeasementSuccessURL |
protected CSRAgentTools |
mCSRAgentTools |
protected java.lang.String |
mOverrideEmailAddress |
protected boolean |
mPercentageOffAmount |
protected java.lang.String |
mRefundTypePropertyName |
protected java.lang.String |
mSendConfirmationMessageErrorURL |
protected java.lang.String |
mSendConfirmationMessageSuccessURL |
protected java.util.List<atg.commerce.order.Refund> |
mSortedRefundList |
protected java.lang.String |
mSubmitAppeasementErrorURL |
protected java.lang.String |
mSubmitAppeasementSuccessURL |
protected javax.transaction.TransactionManager |
mTransactionManager |
protected java.lang.String |
mValidateAppeasementValuesErrorURL |
protected java.lang.String |
mValidateAppeasementValuesSuccessURL |
LOCK_NAME_ATTRIBUTE_NAME, PARAM_TRANSACTION_CREATED, PARAM_VALUE_TRUE
PARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDS
Constructor and Description |
---|
AppeasementFormHandler() |
Modifier and Type | Method and Description |
---|---|
void |
applyAppeasementRefunds(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method calls AppeasementManager.applyRefundAmounts to initialize the appeasement refund amounts
order.
|
void |
cancelAppeasement(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method cancels the active process of appeasement creation.
|
atg.userprofiling.Profile |
getAgentProfile()
Returns the profile of the agent working on the appeasement
|
atg.commerce.csr.appeasement.Appeasement |
getAppeasement()
Returns the Appeasement object.The OrderHolder holds
the appeasement object as a handle to the appeasement
for a given order.
|
atg.commerce.csr.order.appeasement.AppeasementManager |
getAppeasementManager()
Returns the AppeasementManager object
|
java.lang.String |
getApplyAppeasementErrorURL()
Returns the error url property for applying
the appeasement properties
|
java.lang.String |
getApplyAppeasementSuccessURL()
Returns the property to store the success url
for applying the appeasement properties
|
java.lang.String |
getCancelAppeasementErrorURL()
Returns the property to store the error url
for appeasement cancellation.
|
java.lang.String |
getCancelAppeasementSuccessURL()
Returns the property to store the success url
for appeasement cancellation.
|
ConfirmationInfo |
getConfirmationInfo()
Returns the confirmation info object used for sending
email confirmation
|
java.lang.String |
getCreateAppeasementErrorURL()
Returns the property to store the error url
for appeasement creation
|
java.lang.String |
getCreateAppeasementSuccessURL()
Returns the property to store the success url for
appeasement creation
|
CSRAgentTools |
getCSRAgentTools()
Returns the CSRAgentTools object
|
java.lang.String |
getOverrideEmailAddress()
Returns the string representing the email address of the
to send an email confirmation to, this will override
the default send address for the customer
|
double |
getPercentageAppeasementAmount()
Returns the appeasement amount calculated from the
percentage value of appeasement amount to the available
balance
|
java.util.List<atg.repository.RepositoryItem> |
getReasonCodes()
Retrieves a list of appeasement reason codes
|
java.lang.String |
getRefundTypePropertyName()
Returns the property to hold the type of the refund
option.For example, creditCard,storeCredit
|
java.lang.String |
getSendConfirmationMessageErrorURL()
Returns the error url property for sending
the appeasement confirmation message
|
java.lang.String |
getSendConfirmationMessageSuccessURL()
Returns the property to store the success url for sending
the appeasement confirmation message
|
java.util.List<atg.commerce.order.Refund> |
getSortedRefundList()
This method takes the
#getAppeasement().getRefundList() and sorts
the refund option based on "refundType" property. |
java.lang.String |
getSubmitAppeasementErrorURL()
Returns the error url property for submitting
the appeasement
|
java.lang.String |
getSubmitAppeasementSuccessURL()
Returns the property to store the success url for
submitting the appeasement
|
javax.transaction.TransactionManager |
getTransactionManager()
Returns the TransactionManager object
|
java.lang.String |
getValidateAppeasementValuesErrorURL()
Returns the error url property for continuing
the appeasement properties
|
java.lang.String |
getValidateAppeasementValuesSuccessURL()
Returns the property to store the success url
for continue the appeasement properties
|
boolean |
handleApplyAppeasementRefunds(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method calls AppeasementManager.applyRefundAmounts to generate a list of payment groups
which were part of the original order.
|
boolean |
handleCancelAppeasement(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method cancels the active process of appeasement creation
|
boolean |
handleSendConfirmationMessage(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Sends a confirmation email message regarding the new appeasement indicating whether
it is successfully processed or is waiting for the approval
|
boolean |
handleSubmitAppeasement(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method calls AppeasementManager.submitAppeasement to submit the current
appeasement being processed
|
boolean |
handleValidateAppeasementValues(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method is called to handle moving from the appeasement amount entry
to the appeasement amount summary.
|
protected ConfirmationInfo |
initializeConfirmationInfo(atg.commerce.csr.appeasement.Appeasement pAppeasement)
Initializes the confirmation info object for an appeasement
|
boolean |
isAutoSendEmail()
Gets the autoSendEmail property to check if the confirmation mail
has to be sent automatically or not
|
boolean |
isPercentageOffAmount()
Returns the property to hold the percentage value of
appeasement amount to the available balance
|
void |
postApplyAppeasementRefunds(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method is called after all processing is done by the
handleApplyAppeasementRefunds method.
|
void |
postCancelAppeasement(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method is called after all processing is done by the
handleCancelAppeasement method.
|
void |
postSendConfirmationMessage(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method is called after all processing is done by the
handleSendConfirmationMessage method.
|
void |
postSubmitAppeasement(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method is called after all processing is done by the
handleSubmitAppeasement method.
|
void |
postValidateAppeasementValues(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method is called after all processing is done by the
handleValidateAppeasementValues method.
|
void |
preApplyAppeasementRefunds(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method is called before any processing is done by the
handleApplyAppeasementRefunds method.
|
void |
preCancelAppeasement(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method is called before any processing is done by the
handleCancelAppeasement method.
|
void |
preSendConfirmationMessage(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method is called before any processing is done by the
handleSendConfirmationMessage method.
|
void |
preSubmitAppeasement(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method is called before any processing is done by the
handleSubmitAppeasement method.
|
void |
preValidateAppeasementValues(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method is called before any processing is done by the
handleValidateAppeasementValues method.
|
void |
sendConfirmationMessage(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Send the appeasement confirmation message using the the CSRAgentTools component
|
void |
setAgentProfile(atg.userprofiling.Profile pAgentProfile)
Sets the profile of the agent working on the appeasement
|
void |
setAppeasement(atg.commerce.csr.appeasement.Appeasement pAppeasement)
Sets the Appeasement property.The OrderHolder holds
the appeasement object as a handle to the appeasement
for a given order.
|
void |
setAppeasementManager(atg.commerce.csr.order.appeasement.AppeasementManager pAppeasementManager)
Sets the AppeasementManager object.
|
void |
setApplyAppeasementErrorURL(java.lang.String pApplyAppeasementErrorURL)
Sets the property to store the error url for applying
the appeasement properties
|
void |
setApplyAppeasementSuccessURL(java.lang.String pApplyAppeasementSuccessURL)
Sets the applyAppeasementSuccessURL.
|
void |
setAutoSendEmail(boolean pAutoSendEmail)
Sets the autoSendEmail property to check if the confirmation mail
has to be sent automatically or not
|
void |
setCancelAppeasementErrorURL(java.lang.String pCancelAppeasementErrorURL)
Sets the property to store the error url
for appeasement cancellation.
|
void |
setCancelAppeasementSuccessURL(java.lang.String pCancelAppeasementSuccessURL)
Sets the property to store the success url
for cancelling an appeasement
|
void |
setConfirmationInfo(ConfirmationInfo pConfirmationInfo)
Sets the ConfirmationInfo property.
|
void |
setCreateAppeasementErrorURL(java.lang.String pCreateAppeasementErrorURL)
Sets the property to store the error url for
appeasement creation.
|
void |
setCreateAppeasementSuccessURL(java.lang.String pCreateAppeasementSuccessURL)
Sets the the property to store the success url for appeasement creation.
|
void |
setCSRAgentTools(CSRAgentTools pCSRAgentTools)
Sets the CSRAgentTools property.
|
void |
setOverrideEmailAddress(java.lang.String pOverrideEmailAddress)
Sets the string representing the email address of the
to send an email confirmation to, this will override
the default send address for the customer.
|
void |
setPercentageAppeasementAmount(double pPercentageAppeasementAmount)
Sets the property to hold the appeasement amount calculated from the
percentage value of appeasement amount to the available
balance
|
void |
setPercentageOffAmount(boolean pPercentageOffAmount)
Sets the property to hold the percentage value of
appeasement amount to the available balance
|
void |
setRefundTypePropertyName(java.lang.String pRefundTypePropertyName)
Set the property to hold the type of the refund option.
|
void |
setSendConfirmationMessageErrorURL(java.lang.String pSendConfirmationMessageErrorURL)
Sets the property to store the error url for sending
the appeasement confirmation message
|
void |
setSendConfirmationMessageSuccessURL(java.lang.String pSendConfirmationMessageSuccessURL)
Sets the success url for sending the appeasement confirmation message
|
void |
setSortedRefundList(java.util.List<atg.commerce.order.Refund> pSortedRefundList)
This method sets the objects sortedRefundList - a list of refund types
(ie credit card, store credit)
|
void |
setSubmitAppeasementErrorURL(java.lang.String pSubmitAppeasementErrorURL)
Sets the property to store the error url for
submitting the appeasement
|
void |
setSubmitAppeasementSuccessURL(java.lang.String pSubmitAppeasementSuccessURL)
Sets the submitAppeasementSuccessURL.
|
void |
setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
Sets the TransactionManager object.
|
void |
setValidateAppeasementValuesErrorURL(java.lang.String pValidateAppeasementValuesErrorURL)
Sets the property to store the error url for continuing
the appeasement properties
|
void |
setValidateAppeasementValuesSuccessURL(java.lang.String pValidateAppeasementValuesSuccessURL)
Sets the validateAppeasementValuesSuccessURL.
|
void |
submitAppeasement(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method calls AppeasementManager.applyRefundAmounts to initialize the appeasement refund amounts
order.
|
void |
validateAppeasementValues(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method validates the amounts entered, ensuring that they are valid.
|
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, getPriceList, getPriceListId, getPriceListManager, getProfile, getProfileRepository, getPurchaseProcessHelper, getRepeatingRequestMonitor, getRepriceOrderChainId, getResourceBundle, getResourceBundle, getResourceBundleName, getSessionExpirationURL, getShippingGroupManager, getShippingGroupMapContainer, getShoppingCart, getUserLocale, getUserLocale, getUserPricingModels, handlePipelineError, isConcurrentUpdate, isEnsureTransaction, isFormSubmission, isTransactionCreated, isTransactionMarkedAsRollBack, isUseLocksAroundTransactions, isUseRequestLocale, processException, 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, setTransactionToRollbackOnly, setUseLocksAroundTransactions, setUseRequestLocale, setUserLocale, setUserPricingModels, transactionLockName, unsetTransactionCreated
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
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
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static final java.lang.String CLASS_VERSION
public static final java.lang.String APPEASEMENT_PARAM_NAME
public static final java.lang.String APPEASEMENT_ID
public static final java.lang.String APPEASEMENT_TYPE
public static final java.lang.String APPEASEMENT_AMOUNT
public static final java.lang.String APPEASEMENT_REASON_CODE
protected boolean mPercentageOffAmount
protected java.lang.String mRefundTypePropertyName
protected ConfirmationInfo mConfirmationInfo
protected java.lang.String mOverrideEmailAddress
protected boolean mAutoSendEmail
protected atg.userprofiling.Profile mAgentProfile
protected atg.commerce.csr.appeasement.Appeasement mAppeasement
protected java.util.List<atg.commerce.order.Refund> mSortedRefundList
protected CSRAgentTools mCSRAgentTools
protected atg.commerce.csr.order.appeasement.AppeasementManager mAppeasementManager
protected javax.transaction.TransactionManager mTransactionManager
protected java.lang.String mCreateAppeasementSuccessURL
protected java.lang.String mCreateAppeasementErrorURL
protected java.lang.String mApplyAppeasementSuccessURL
protected java.lang.String mApplyAppeasementErrorURL
protected java.lang.String mSubmitAppeasementSuccessURL
protected java.lang.String mSubmitAppeasementErrorURL
protected java.lang.String mValidateAppeasementValuesSuccessURL
protected java.lang.String mValidateAppeasementValuesErrorURL
protected java.lang.String mCancelAppeasementSuccessURL
protected java.lang.String mCancelAppeasementErrorURL
protected java.lang.String mSendConfirmationMessageSuccessURL
protected java.lang.String mSendConfirmationMessageErrorURL
public void setPercentageOffAmount(boolean pPercentageOffAmount)
pPercentageOffAmount
- the property to hold the
percentage value of appeasement amount to the available
balancepublic boolean isPercentageOffAmount()
public void setPercentageAppeasementAmount(double pPercentageAppeasementAmount)
pPercentageAppeasementAmount
- the appeasement amount calculated
from the percentage value of appeasement amount to the available
balancepublic double getPercentageAppeasementAmount()
public void setRefundTypePropertyName(java.lang.String pRefundTypePropertyName)
pRefundTypePropertyName
- the property to
hold the type of the refund optionpublic java.lang.String getRefundTypePropertyName()
public ConfirmationInfo getConfirmationInfo()
public void setConfirmationInfo(ConfirmationInfo pConfirmationInfo)
pConfirmationInfo
- the confirmation info object used
for sending email confirmationpublic java.lang.String getOverrideEmailAddress()
public void setOverrideEmailAddress(java.lang.String pOverrideEmailAddress)
pOverrideEmailAddress
- the email addresspublic boolean isAutoSendEmail()
public void setAutoSendEmail(boolean pAutoSendEmail)
pAutoSendEmail
- the autoSendEmail property to check if the
confirmation mail has to be sent automatically or notpublic void setAgentProfile(atg.userprofiling.Profile pAgentProfile)
pAgentProfile
- the profile of the agent working
on the appeasementpublic atg.userprofiling.Profile getAgentProfile()
public void setAppeasement(atg.commerce.csr.appeasement.Appeasement pAppeasement)
pAppeasement
- the Appeasement propertypublic atg.commerce.csr.appeasement.Appeasement getAppeasement()
public void setSortedRefundList(java.util.List<atg.commerce.order.Refund> pSortedRefundList)
pSortedRefundList
- - a List containing refund typespublic java.util.List<atg.commerce.order.Refund> getSortedRefundList() throws atg.commerce.CommerceException
#getAppeasement().getRefundList()
and sorts
the refund option based on "refundType" property.#getAppeasement().getRefundList()
is sorted and returned.atg.commerce.CommerceException
- if fails to retireve the list of refundspublic void setCSRAgentTools(CSRAgentTools pCSRAgentTools)
pCSRAgentTools
- the CSRAgentTools propertypublic CSRAgentTools getCSRAgentTools()
public void setAppeasementManager(atg.commerce.csr.order.appeasement.AppeasementManager pAppeasementManager)
pAppeasementManager
- the AppeasementManager objectpublic atg.commerce.csr.order.appeasement.AppeasementManager getAppeasementManager()
public void setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
setTransactionManager
in class atg.commerce.order.purchase.PurchaseProcessFormHandler
pTransactionManager
- the TransactionManager objectpublic javax.transaction.TransactionManager getTransactionManager()
getTransactionManager
in class atg.commerce.order.purchase.PurchaseProcessFormHandler
public void setCreateAppeasementSuccessURL(java.lang.String pCreateAppeasementSuccessURL)
pCreateAppeasementSuccessURL
- the property to store the
success url for appeasement creationpublic java.lang.String getCreateAppeasementSuccessURL()
public void setCreateAppeasementErrorURL(java.lang.String pCreateAppeasementErrorURL)
pCreateAppeasementErrorURL
- the property to store
the error url for appeasement creationpublic java.lang.String getCreateAppeasementErrorURL()
public void setApplyAppeasementSuccessURL(java.lang.String pApplyAppeasementSuccessURL)
pApplyAppeasementSuccessURL
- the property to store the
success url for applying the appeasement propertiespublic java.lang.String getApplyAppeasementSuccessURL()
public void setApplyAppeasementErrorURL(java.lang.String pApplyAppeasementErrorURL)
pApplyAppeasementErrorURL
- the property to store the
error url for applying the appeasement propertiespublic java.lang.String getApplyAppeasementErrorURL()
public void setSubmitAppeasementSuccessURL(java.lang.String pSubmitAppeasementSuccessURL)
pSubmitAppeasementSuccessURL
- the property to store the
success url for submitting the appeasementpublic java.lang.String getSubmitAppeasementSuccessURL()
public void setSubmitAppeasementErrorURL(java.lang.String pSubmitAppeasementErrorURL)
pSubmitAppeasementErrorURL
- the property to
store the error url for submitting the appeasementpublic java.lang.String getSubmitAppeasementErrorURL()
public void setValidateAppeasementValuesSuccessURL(java.lang.String pValidateAppeasementValuesSuccessURL)
pValidateAppeasementValuesSuccessURL
- the property to store the
success url for continuing the appeasement propertiespublic java.lang.String getValidateAppeasementValuesSuccessURL()
public void setValidateAppeasementValuesErrorURL(java.lang.String pValidateAppeasementValuesErrorURL)
pValidateAppeasementValuesErrorURL
- the property to store the
error url for continuing the appeasement propertiespublic java.lang.String getValidateAppeasementValuesErrorURL()
public void setCancelAppeasementSuccessURL(java.lang.String pCancelAppeasementSuccessURL)
pCancelAppeasementSuccessURL
- the property to store the
success url for cancelling an appeasementpublic java.lang.String getCancelAppeasementSuccessURL()
public void setCancelAppeasementErrorURL(java.lang.String pCancelAppeasementErrorURL)
pCancelAppeasementErrorURL
- the property to store
the error url for appeasement cancellationpublic java.lang.String getCancelAppeasementErrorURL()
public void setSendConfirmationMessageSuccessURL(java.lang.String pSendConfirmationMessageSuccessURL)
pSendConfirmationMessageSuccessURL
- the property to store the
success url for sending the appeasement confirmation messagepublic java.lang.String getSendConfirmationMessageSuccessURL()
public void setSendConfirmationMessageErrorURL(java.lang.String pSendConfirmationMessageErrorURL)
pSendConfirmationMessageErrorURL
- the property to
store the error url for sending
the appeasement confirmation messagepublic java.lang.String getSendConfirmationMessageErrorURL()
public boolean handleApplyAppeasementRefunds(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
This method calls AppeasementManager.applyRefundAmounts to generate a list of payment groups which were part of the original order.
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet iopublic boolean handleValidateAppeasementValues(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
This method is called to handle moving from the appeasement amount entry to the appeasement amount summary. It's primary responsibility is to validate the amounts entered.
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet iopublic void validateAppeasementValues(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
This method validates the amounts entered, ensuring that they are valid. i.e That they don't exceed the balance being appeased and that the allocations to the refund methods (credit card, store credit, etc) match the appeasement amount
pRequest
- the servlet's requestpResponse
- the servlet's responsepublic void preValidateAppeasementValues(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- a value of type DynamoHttpServletRequestpResponse
- a value of type DynamoHttpServletResponsejavax.servlet.ServletException
- if an error occursjava.io.IOException
- if an error occurspublic void postValidateAppeasementValues(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- a value of type DynamoHttpServletRequestpResponse
- a value of type DynamoHttpServletResponsejavax.servlet.ServletException
- if an error occursjava.io.IOException
- if an error occurspublic void applyAppeasementRefunds(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException
This method calls AppeasementManager.applyRefundAmounts to initialize the appeasement refund amounts order.
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioatg.commerce.CommerceException
- if an error occurs while applying
the appeasement refundsatg.repository.RepositoryException
- if an error occurs while retrieving the
the appeasement properties for a given orderpublic void preApplyAppeasementRefunds(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- a value of type DynamoHttpServletRequestpResponse
- a value of type DynamoHttpServletResponsejavax.servlet.ServletException
- if an error occursjava.io.IOException
- if an error occurspublic void postApplyAppeasementRefunds(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- a value of type DynamoHttpServletRequestpResponse
- a value of type DynamoHttpServletResponsejavax.servlet.ServletException
- if an error occursjava.io.IOException
- if an error occurspublic boolean handleSubmitAppeasement(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
This method calls AppeasementManager.submitAppeasement to submit the current appeasement being processed
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet iopublic void submitAppeasement(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException
This method calls AppeasementManager.applyRefundAmounts to initialize the appeasement refund amounts order.
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioatg.commerce.CommerceException
- if an error occurs while applying
the appeasement refundsatg.repository.RepositoryException
- if an error occurs while retrieving the
the appeasement properties for a given orderpublic void preSubmitAppeasement(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- a value of type DynamoHttpServletRequestpResponse
- a value of type DynamoHttpServletResponsejavax.servlet.ServletException
- if an error occursjava.io.IOException
- if an error occurspublic void postSubmitAppeasement(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- a value of type DynamoHttpServletRequestpResponse
- a value of type DynamoHttpServletResponsejavax.servlet.ServletException
- if an error occursjava.io.IOException
- if an error occurspublic boolean handleCancelAppeasement(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
This method cancels the active process of appeasement creation
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet iopublic void preCancelAppeasement(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- a value of type DynamoHttpServletRequestpResponse
- a value of type DynamoHttpServletResponsejavax.servlet.ServletException
- if an error occursjava.io.IOException
- if an error occurspublic void postCancelAppeasement(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- a value of type DynamoHttpServletRequestpResponse
- a value of type DynamoHttpServletResponsejavax.servlet.ServletException
- if an error occursjava.io.IOException
- if an error occurspublic void cancelAppeasement(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
Also removes any store credit refund allocations made as part of the current appeasement.
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet iopublic boolean handleSendConfirmationMessage(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet iopublic void sendConfirmationMessage(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
pRequest
- the servlet's requestpResponse
- the servlet's responseatg.userprofiling.email.TemplateEmailException
- if an error occurs in sending the confirmation messagepublic void preSendConfirmationMessage(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- a value of type DynamoHttpServletRequestpResponse
- a value of type DynamoHttpServletResponsejavax.servlet.ServletException
- if an error occursjava.io.IOException
- if an error occurspublic void postSendConfirmationMessage(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- a value of type DynamoHttpServletRequestpResponse
- a value of type DynamoHttpServletResponsejavax.servlet.ServletException
- if an error occursjava.io.IOException
- if an error occurspublic java.util.List<atg.repository.RepositoryItem> getReasonCodes()
protected ConfirmationInfo initializeConfirmationInfo(atg.commerce.csr.appeasement.Appeasement pAppeasement)
pAppeasement
- The appeasement object.