|
||||||||||
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.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
Commit Order Helper. |
protected java.lang.String |
mConfirmEmailAddress
Confirm e-mail address. |
protected java.lang.String |
mCreditCardVerificationNumber
Credit card verification number. |
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 | |
---|---|
protected boolean |
emailAlreadyRegistered(java.lang.String pEmail,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Returns true if a user already exists with the given email |
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()
|
boolean |
isCreditCardRequired()
Checks whether an order uses a credit card for a payment. |
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)
|
Methods inherited from class atg.commerce.order.purchase.CommitOrderFormHandler |
---|
commitOrder, 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, 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 VERIFICATION_NUMBER_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)
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)
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 requestpResponse
- - http response
javax.servlet.ServletException
- if servlet error occurs
java.io.IOException
- if IO error occursCommitOrderFormHandler.handleCommitOrder(atg.servlet.DynamoHttpServletRequest, atg.servlet.DynamoHttpServletResponse)
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 objectpResponse
- the response object
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occursCommitOrderFormHandler.handleCommitOrder(atg.servlet.DynamoHttpServletRequest, atg.servlet.DynamoHttpServletResponse)
public atg.commerce.order.CreditCard getCreditCard()
protected boolean emailAlreadyRegistered(java.lang.String pEmail, atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
pEmail
- the email which a user wants to usepRequest
- the servlet's requestpResponse
- the servlet's response
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |