|
||||||||||
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.projects.store.order.purchase.StoreCommitOrderHandler
public class StoreCommitOrderHandler
Extends the default CommitOrderFormHandler as to implement custom preCommitOrder and postCommitOrder functionality.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string. |
protected static java.lang.String |
CONFIRM_EMAIL_ALREADY_EXISTS
Confirm Email Address already exists message key. |
protected static java.lang.String |
CONFIRM_EMAIL_INVALID
Confirm Email Address invalid message key. |
protected StoreCommitOrderProcessHelper |
mCommitOrderHelper
property: commitOrderHelper |
protected java.lang.String |
mConfirmEmailAddress
property: confirmEmailAddress |
protected java.lang.String |
mCreditCardVerificationNumber
property: creditCardVerificationNumber |
protected static java.lang.String |
SHIPPING_METHOD_INVALID
Shipping method invalid message key. |
protected static java.lang.String |
VERIFICATION_NUMBER_INVALID
Verification number invalid message key. |
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 | |
---|---|
StoreCommitOrderHandler()
|
Method Summary | |
---|---|
void |
commitOrder(atg.commerce.order.Order pOrder,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This overridden method checks for an 'ItemPromotionExpired' formException and sets the 'commitOrderErrorURL' with the 'expiredPromotionErrorURL' to go to when this type of exception is detected. |
CheckoutProgressStates |
getCheckoutProgressStates()
|
StoreCommitOrderProcessHelper |
getCommitOrderHelper()
|
java.lang.String |
getConfirmEmailAddress()
|
java.lang.String |
getCouponCode()
|
atg.commerce.order.CreditCard |
getCreditCard()
Method to allow page access to CreditCard object. |
java.lang.String |
getCreditCardVerificationNumber()
|
java.lang.String |
getExpiredPromotionErrorURL()
|
atg.commerce.order.purchase.ShippingGroupContainerService |
getShippingGroupContainerService()
|
boolean |
isCreditCardRequired()
Checks whether an order uses a credit card for a payment. |
protected boolean |
isEmailAlreadyRegistered(java.lang.String pEmail)
Returns true if a user already exists with the given email. |
void |
postCommitOrder(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Called after all processing is done by the handleCommitOrder method. |
void |
preCommitOrder(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Ensures that an email address is set in the billing address, as required by CyberSource. |
void |
setCheckoutProgressStates(CheckoutProgressStates pCheckoutProgressStates)
|
void |
setCommitOrderHelper(StoreCommitOrderProcessHelper pCommitOrderHelper)
|
void |
setConfirmEmailAddress(java.lang.String pConfirmEmailAddress)
|
void |
setCouponCode(java.lang.String pCouponCode)
|
void |
setCreditCardVerificationNumber(java.lang.String pCreditCardVerificationNumber)
|
void |
setExpiredPromotionErrorURL(java.lang.String pExpiredPromotionErrorURL)
|
void |
setShippingGroupContainerService(atg.commerce.order.purchase.ShippingGroupContainerService pShippingGroupContainerService)
|
Methods inherited from class atg.commerce.order.purchase.CommitOrderFormHandler |
---|
getAllowEmptyOrders, getCommitOrderErrorURL, getCommitOrderSuccessURL, getOrderId, getProcessOrderMap, getSalesChannel, getSiteId, handleCommitOrder, setAllowEmptyOrders, setCommitOrderErrorURL, setCommitOrderSuccessURL, setOrderId, setSalesChannel, setSiteId |
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, 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 |
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, 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 |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, 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 CLASS_VERSION
protected static final java.lang.String VERIFICATION_NUMBER_INVALID
protected static final java.lang.String SHIPPING_METHOD_INVALID
protected static final java.lang.String CONFIRM_EMAIL_INVALID
protected static final java.lang.String CONFIRM_EMAIL_ALREADY_EXISTS
protected StoreCommitOrderProcessHelper mCommitOrderHelper
protected java.lang.String mConfirmEmailAddress
protected java.lang.String mCreditCardVerificationNumber
Constructor Detail |
---|
public StoreCommitOrderHandler()
Method Detail |
---|
public CheckoutProgressStates getCheckoutProgressStates()
public void setCheckoutProgressStates(CheckoutProgressStates pCheckoutProgressStates)
pCheckoutProgressStates
- - the checkout progress states to set.public StoreCommitOrderProcessHelper getCommitOrderHelper()
public void setCommitOrderHelper(StoreCommitOrderProcessHelper pCommitOrderHelper)
pCommitOrderHelper
- - the order helper component to set.public java.lang.String getConfirmEmailAddress()
public void setConfirmEmailAddress(java.lang.String pConfirmEmailAddress)
pConfirmEmailAddress
- - the confirm e-mail address to set.public java.lang.String getCreditCardVerificationNumber()
public void setCreditCardVerificationNumber(java.lang.String pCreditCardVerificationNumber)
pCreditCardVerificationNumber
- - the credit card verification number to set.public java.lang.String getCouponCode()
public void setCouponCode(java.lang.String pCouponCode)
pCouponCode
- - the coupon code to set.public void setShippingGroupContainerService(atg.commerce.order.purchase.ShippingGroupContainerService pShippingGroupContainerService)
pShippingGroupContainerService-
- a new ShippingGroupContainerService.public atg.commerce.order.purchase.ShippingGroupContainerService getShippingGroupContainerService()
public void setExpiredPromotionErrorURL(java.lang.String pExpiredPromotionErrorURL)
pExpiredPromotionErrorURL
- - The expired promotion error redirect URL.public java.lang.String getExpiredPromotionErrorURL()
public void preCommitOrder(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
preCommitOrder
in class atg.commerce.order.purchase.CommitOrderFormHandler
pRequest
- - HTTP request.pResponse
- - HTTP response.
javax.servlet.ServletException
- if servlet error occurs.
java.io.IOException
- if IO error occurs.atg.commerce.order.purchase.CommitOrderFormHandler#handleCommitOrder.
public void commitOrder(atg.commerce.order.Order pOrder, atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
commitOrder
in class atg.commerce.order.purchase.CommitOrderFormHandler
pOrder
- - The order that is being committed.pRequest
- - The HTTP request object.pResponse
- - The HTTP response object.
javax.servlet.ServletException
java.io.IOException
public boolean isCreditCardRequired()
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 object.pResponse
- - the response object.
javax.servlet.ServletException
- - if an error occurs.
java.io.IOException
- - if an error occurs.CommitOrderFormHandler.handleCommitOrder(atg.servlet.DynamoHttpServletRequest, atg.servlet.DynamoHttpServletResponse)
public atg.commerce.order.CreditCard getCreditCard()
protected boolean isEmailAlreadyRegistered(java.lang.String pEmail)
pEmail
- - the email which a user wants to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |