|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.droplet.EmptyFormHandler atg.droplet.GenericFormHandler atg.commerce.order.purchase.PurchaseProcessFormHandler atg.projects.store.order.purchase.GiftMessageFormHandler
public class GiftMessageFormHandler
This class is used to handle form submissions from the Gift Message page.
Field Summary | |
---|---|
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_GIFT_MSG
No gift message message key. |
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 | |
---|---|
GiftMessageFormHandler()
|
Method Summary | |
---|---|
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)
|
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, getPriceList, getPriceListId, getPriceListManager, getProfile, getProfileRepository, getPurchaseProcessHelper, getRepeatingRequestMonitor, getRepriceOrderChainId, getResourceBundle, getResourceBundle, getResourceBundleName, getSessionExpirationURL, getShippingGroupManager, getShippingGroupMapContainer, getShoppingCart, getTransactionManager, getUserLocale, getUserLocale, getUserPricingModels, handlePipelineError, 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 |
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, reResolveThis, 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 java.lang.String CLASS_VERSION
protected static final java.lang.String GIFT_MESSAGE_TOO_LONG
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
Constructor Detail |
---|
public GiftMessageFormHandler()
Method Detail |
---|
public java.lang.String getCouponCode()
public void setCouponCode(java.lang.String pCouponCode)
public boolean handleAddGiftMessage(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the request objectpResponse
- the response object
javax.servlet.ServletException
- if an error occurs
java.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 response
atg.commerce.CommerceException
- should anything go wrong
java.io.IOException
- if IO error occurs
javax.servlet.ServletException
- if servlet error occursStoreOrderManager.addGiftMessage
public java.lang.String getAddGiftMessageSuccessURL()
public void setAddGiftMessageSuccessURL(java.lang.String pAddGiftMessageSuccessURL)
pAddGiftMessageSuccessURL
- -
add gift message success resirect 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |