public class GiftMessageFormHandler
extends atg.commerce.order.purchase.PurchaseProcessFormHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string.
|
protected static java.lang.String |
ERROR_ADDING_GIFT_MESSAGE
Error adding gift message message key.
|
protected static java.lang.String |
GIFT_MESSAGE_TOO_LONG
Gift message too long message key.
|
protected java.lang.String |
mAddGiftMessageErrorURL
Add gift message redirect URL.
|
protected java.lang.String |
mAddGiftMessageSuccessURL
Add gify message success redirect URL.
|
protected java.lang.String |
mExpressCheckout
Express checkout.
|
protected java.lang.String |
mGiftMessage
Gift message text.
|
protected java.lang.String |
mGiftMessageFrom
Gift message recipient.
|
protected java.lang.String |
mGiftMessageTo
Gift message sender.
|
protected static java.lang.String |
MSG_NO_FROM_TO_VALUES
Gift message from field or gift message to field empty.
|
protected static java.lang.String |
MSG_NO_GIFT_MSG
No gift message message key.
|
LOCK_NAME_ATTRIBUTE_NAME, PARAM_TRANSACTION_CREATED, PARAM_VALUE_TRUE
PARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDS
Constructor and Description |
---|
GiftMessageFormHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
addGiftMessage(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Adds the gift message to the order.
|
java.lang.String |
getAddGiftMessageErrorURL() |
java.lang.String |
getAddGiftMessageSuccessURL() |
java.lang.String |
getCouponCode() |
java.lang.String |
getExpressCheckout() |
java.lang.String |
getGiftMessage() |
java.lang.String |
getGiftMessageFrom() |
java.lang.String |
getGiftMessageTo() |
boolean |
handleAddGiftMessage(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method will add the gift message to the order's specialInstructions.
|
void |
setAddGiftMessageErrorURL(java.lang.String pAddGiftMessageErrorURL) |
void |
setAddGiftMessageSuccessURL(java.lang.String pAddGiftMessageSuccessURL) |
void |
setCouponCode(java.lang.String pCouponCode) |
void |
setExpressCheckout(java.lang.String pExpressCheckout) |
void |
setGiftMessage(java.lang.String pGiftMessage) |
void |
setGiftMessageFrom(java.lang.String pGiftMessageFrom) |
void |
setGiftMessageTo(java.lang.String pGiftMessageTo) |
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, getTransactionManager, 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, setTransactionManager, 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, toString
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
protected static final java.lang.String GIFT_MESSAGE_TOO_LONG
protected static final java.lang.String MSG_NO_FROM_TO_VALUES
protected static final java.lang.String MSG_NO_GIFT_MSG
protected static final java.lang.String ERROR_ADDING_GIFT_MESSAGE
protected java.lang.String mAddGiftMessageSuccessURL
protected java.lang.String mAddGiftMessageErrorURL
protected java.lang.String mGiftMessageTo
protected java.lang.String mGiftMessageFrom
protected java.lang.String mGiftMessage
protected java.lang.String mExpressCheckout
public java.lang.String getCouponCode()
public void setCouponCode(java.lang.String pCouponCode)
pCouponCode
- the coupon code to setpublic boolean handleAddGiftMessage(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the request objectpResponse
- the response objectjavax.servlet.ServletException
- if an error occursjava.io.IOException
- if an error occursprotected void addGiftMessage(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException, atg.commerce.CommerceException
Adds the gift message to the order. It gets the gift message from the
giftMessageTo
giftMessageFrom
giftMessage
parameters set on the form.
pRequest
- - HTTP requestpResponse
- - HTTP responseatg.commerce.CommerceException
- should anything go wrongjava.io.IOException
- if IO error occursjavax.servlet.ServletException
- if servlet error occursStoreOrderManager.addGiftMessage
public java.lang.String getAddGiftMessageSuccessURL()
public void setAddGiftMessageSuccessURL(java.lang.String pAddGiftMessageSuccessURL)
pAddGiftMessageSuccessURL
- add gift message success redirect URL.public java.lang.String getAddGiftMessageErrorURL()
public void setAddGiftMessageErrorURL(java.lang.String pAddGiftMessageErrorURL)
pAddGiftMessageErrorURL
- add gift message error redirect URL.public void setGiftMessageTo(java.lang.String pGiftMessageTo)
pGiftMessageTo
- gift message sender.public java.lang.String getGiftMessageTo()
public void setGiftMessageFrom(java.lang.String pGiftMessageFrom)
pGiftMessageFrom
- gift message recipient.public java.lang.String getGiftMessageFrom()
public void setGiftMessage(java.lang.String pGiftMessage)
pGiftMessage
- gift message text.public java.lang.String getGiftMessage()
public void setExpressCheckout(java.lang.String pExpressCheckout)
pExpressCheckout
- express checkout.public java.lang.String getExpressCheckout()