|
||||||||||
| 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.ShippingGroupFormHandler
atg.projects.store.order.purchase.ShippingInfoFormHandler
public class ShippingInfoFormHandler
Form Handler for handling shipping related checkout processes.
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string. |
protected java.util.List |
mGiftShippingGroups
property: Gift shipping groups. |
protected static java.lang.String |
MSG_ERROR_MOVE_TO_BILLING
|
protected static java.lang.String |
MSG_ERROR_UPDATE_ORDER
Error Message keys |
| Fields inherited from class atg.commerce.order.purchase.ShippingGroupFormHandler |
|---|
mAllHardgoodCommerceItemShippingInfos, mCommerceItemShippingInfoTools, mConsolidateShippingInfosBeforeApply, mElectronicShippingGroups, MSG_ERROR_UPDATE_SHIPPINGGROUP, MSG_INVALID_SHIPPING_SPLIT_NUMBER, MSG_NO_DEFAULT_SHIPPING_GROUP, mValidateShippingGroups |
| 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 | |
|---|---|
ShippingInfoFormHandler()
|
|
| Method Summary | |
|---|---|
protected void |
addAddressValidationFormError(java.util.List pMissingProperties,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Utility method to add form exception. |
void |
addShippingAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Creates a new shipping group and adds it to the shipping group map container. |
protected java.lang.String |
createPricingErrorMessage(atg.commerce.pricing.PricingException pe,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Pulls out the Cybersource error message for invalid address. |
void |
editShippingAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Edits a shipping group address in the container and saves the changes to the profile if the address is in the profile's address map. |
atg.core.util.Address |
getAddress()
|
java.lang.String |
getAddShippingAddressErrorURL()
|
java.lang.String |
getAddShippingAddressSuccessURL()
|
java.util.List |
getAllHardgoodCommerceItemShippingInfos()
Get the List of all the CommerceItemShippingInfos for hardgoods from the CommerceItemShippingInfoMap. |
CheckoutOptionSelections |
getCheckoutOptionSelections()
|
java.lang.String |
getDefaultShippingMethod()
|
atg.core.util.Address |
getEditAddress()
|
java.lang.String |
getEditShippingAddressErrorURL()
|
java.lang.String |
getEditShippingAddressNickName()
|
java.lang.String |
getEditShippingAddressSuccessURL()
|
java.util.List |
getElectronicShippingGroups()
Electronic shipping groups. |
java.util.List |
getGiftShippingGroups()
|
java.lang.String |
getMoveToBillingErrorURL()
|
java.lang.String |
getMoveToBillingSuccessURL()
|
java.lang.String |
getNewShipToAddressName()
|
atg.commerce.util.PlaceUtils |
getPlaceUtils()
|
boolean |
getSaveShippingAddress()
|
java.lang.String |
getShippingAddressNewNickName()
|
atg.nucleus.ServiceMap |
getShippingGroupInitializers()
Return the ShippingGroupInitializers property. |
StoreShippingProcessHelper |
getShippingHelper()
|
java.lang.String |
getShippingMethod()
|
java.lang.String |
getShipToAddressName()
|
boolean |
getShipToNewAddress()
|
java.lang.String |
getUpdateElectronicShippingInfoErrorURL()
|
java.lang.String |
getUpdateElectronicShippingInfoSuccessURL()
|
boolean |
getUseShippingForBilling()
|
boolean |
handleAddShippingAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Adds a new shipping group to the ShippingGroupMapContainer. |
boolean |
handleCancel(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Override handleCancel to clear form exceptions so that error message about missing required fields is not displayed when a shopper hits "Cancel" |
boolean |
handleEditShippingAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Handler for editing an address. |
boolean |
handleInitEditAddressForm(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Initializes the address property with the shipping group address identified by the editNickName. |
boolean |
handleInitMultipleShippingForm(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Initializes the form handler for multiple shipping group selection. |
boolean |
handleInitSingleShippingForm(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Initializes the form handler for single shipping group selection. |
boolean |
handleMoveToBilling(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This handler method will validate shipping address and apply the shipping groups to the order. |
boolean |
handleUpdateElectronicShippingInfo(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Handler for editing electronic shipping group properties. |
boolean |
isMultipleNonGiftHardgoodItems()
Determines if the total quantity of all non-gift hardgood items is more than one. |
boolean |
isSingleShippingGroupCheckout()
|
void |
moveToBilling(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Applies the data in the CommerceItemShippingInfoContainer and ShippingGroupMapContainer to the order. |
void |
postAddShippingAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Copies the new shipping group address to the order's credit card payment group address. |
void |
postEditShippingAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Post edit shipping address processing. |
void |
postMoveToBilling(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method will reprice the order to catch address problems through CyberSource. |
protected void |
postSetupGiftShippingDetails(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Perform any post actions after setting up gift shipping groups |
protected void |
postShipToMultipleAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Sets the profile default shipping method if not set already |
protected void |
postShipToNewAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method initializes the billing address from the shipping address if the user selected that option. |
protected void |
postShipToProfileAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method initializes the billing address from the shipping address if the user selected that option. |
void |
postUpdateElectronicShippingInfo(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Post edit electronic shipping info processing. |
void |
preAddShippingAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Validates the selected nickname and address properties. |
void |
preEditShippingAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Validates the address properties. |
void |
preMoveToBilling(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method validates the user inputs for the Move To Billing process |
protected void |
preSetupGiftShippingDetails(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Perfirms validations for Gift Shipping Groups in the order, against the selected shipping method and shipping restrictions |
protected void |
preShipToMultipleAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method performs input data validations for multiple shipping addresses specified by shopper |
protected void |
preShipToNewAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Performs input data validations for new shipping address specified by shopper |
protected void |
preShipToProfileAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method provides inputa data validations for a profile shipping address selected by shopper |
void |
preUpdateElectronicShippingInfo(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Validates the electronic shipping group properties. |
protected void |
processShippingRestrictionsErrors(java.util.List pshippingValidationResult,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Process shipping restriction errors and add them to form exceptions |
protected void |
repriceOrder(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Logic to reprice order, and parse any errors. |
void |
setAddress(atg.core.util.Address pAddress)
|
void |
setAddShippingAddressErrorURL(java.lang.String pAddShippingAddressErrorURL)
|
void |
setAddShippingAddressSuccessURL(java.lang.String pAddShippingAddressSuccessURL)
|
void |
setCheckoutOptionSelections(CheckoutOptionSelections pCheckoutOptionSelections)
|
void |
setDefaultShippingMethod(java.lang.String pDefaultShippingMethod)
|
void |
setEditAddress(atg.core.util.Address pEditAddress)
|
void |
setEditShippingAddressErrorURL(java.lang.String pEditShippingAddressErrorURL)
|
void |
setEditShippingAddressNickName(java.lang.String pEditShippingAddressNickName)
|
void |
setEditShippingAddressSuccessURL(java.lang.String pEditShippingAddressSuccessURL)
|
void |
setMoveToBillingErrorURL(java.lang.String pMoveToBillingErrorURL)
|
void |
setMoveToBillingSuccessURL(java.lang.String pMoveToBillingSuccessURL)
|
void |
setNewShipToAddressName(java.lang.String pNewShipToAddressName)
|
void |
setPlaceUtils(atg.commerce.util.PlaceUtils pPlaceUtils)
Sets place utils |
void |
setSaveShippingAddress(boolean pSaveShippingAddress)
|
void |
setShippingAddressNewNickName(java.lang.String pShippingAddressNewNickName)
|
void |
setShippingGroupInitializers(atg.nucleus.ServiceMap pShippingGroupInitializers)
Set the ShippingGroupInitializers property. |
void |
setShippingHelper(StoreShippingProcessHelper pShippingHelper)
|
void |
setShippingMethod(java.lang.String pShippingMethod)
|
void |
setShipToAddressName(java.lang.String pShipToAddressName)
|
void |
setShipToNewAddress(boolean pShipToNewAddress)
|
void |
setSingleShippingGroupCheckout(boolean pSingleShippingGroupCheckout)
|
void |
setUpdateElectronicShippingInfoErrorURL(java.lang.String pUpdateElectronicShippingInfoErrorURL)
|
void |
setUpdateElectronicShippingInfoSuccessURL(java.lang.String pUpdateElectronicShippingInfoSuccessURL)
|
protected void |
setupGiftShippingDetails(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Setup shipping details for gift shipping groups |
void |
setUseShippingForBilling(boolean pUseShippingForBilling)
|
protected void |
shipToMultipleAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Setup multi shipping details for shipping to profile addresses |
protected void |
shipToNewAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Setup single shipping details for shipping to a new address |
protected void |
shipToProfileAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Setup single shipping details for shipping to profile addresses |
void |
updateElectronicShippingInfo(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Saves changes/edits to electronic shipping group properties. |
protected void |
validateAddressNickname(java.lang.String pNickName)
Validate address nickname for duplicacy |
protected void |
validateShippingAddress(atg.core.util.Address pAddress,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Validates the new address. |
protected void |
validateShippingMethod(atg.core.util.Address pAddress,
java.lang.String pShippingMethod,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Validates the new address - Make sure user isn't trying to Express ship to AK, etc. |
protected void |
validateShippingMethodForContainerShippingGroups(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Validates the shipping group addresses against the provided shipping method. |
protected void |
validateShippingMethodForGiftShippingGroups(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Validate the gift shipping addresses against the shipping methods being used. |
protected void |
validateShippingRestrictions(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Determines if the customer is attempting to ship an item to a country that is restricted. |
| Methods inherited from class atg.commerce.order.purchase.ShippingGroupFormHandler |
|---|
addShippingGroupToMap, applyCommerceItemShippingInfo, applyDefaultShippingGroup, applyShippingGroups, consolidateShippingInfos, getApplyShippingGroupsErrorURL, getApplyShippingGroupsSuccessURL, getCommerceItemShippingInfoTools, getCurrentList, getCurrentShippingGroup, getDefaultShippingGroupName, getFirstNonGiftHardgoodShippingGroupWithRels, getListId, getLocale, getNonGiftHardgoodShippingGroupCount, getNonGiftHardgoodShippingGroups, getShippingGroup, getShippingGroupId, getSpecifyDefaultShippingGroupErrorURL, getSpecifyDefaultShippingGroupSuccessURL, getSplitShippingInfosErrorURL, getSplitShippingInfosSuccessURL, getValidateShippingGroupsChainId, handleApplyShippingGroups, handleSpecifyDefaultShippingGroup, handleSplitShippingInfos, isAnyElectronicShippingGroups, isAnyHardgoodShippingGroups, isAnyNonGiftHardgoodShippingGroups, isApplyDefaultShippingGroup, isConsolidateShippingInfosBeforeApply, isMultipleHardgoodShippingGroupsWithRelationships, isMultipleNonGiftHardgoodShippingGroups, isShippingGroupInOrder, isValidateShippingGroups, mergeCommerceItemShippingInfos, postApplyShippingGroups, postSpecifyDefaultShippingGroup, postSplitShippingInfos, preApplyShippingGroups, preSpecifyDefaultShippingGroup, preSplitShippingInfos, removeShippingGroupFromMap, runProcessValidateShippingGroups, setApplyDefaultShippingGroup, setApplyShippingGroupsErrorURL, setApplyShippingGroupsSuccessURL, setCommerceItemShippingInfoTools, setConsolidateShippingInfosBeforeApply, setCurrentList, setCurrentShippingGroup, setDefaultShippingGroupName, setListId, setLocale, setShippingGroupId, setSpecifyDefaultShippingGroupErrorURL, setSpecifyDefaultShippingGroupSuccessURL, setSplitShippingInfosErrorURL, setSplitShippingInfosSuccessURL, setValidateShippingGroups, setValidateShippingGroupsChainId, specifyDefaultShippingGroup, splitCommerceItemShippingInfoByQuantity, splitShippingInfos |
| 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, 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, 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, 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 java.lang.String MSG_ERROR_UPDATE_ORDER
protected static java.lang.String MSG_ERROR_MOVE_TO_BILLING
protected java.util.List mGiftShippingGroups
| Constructor Detail |
|---|
public ShippingInfoFormHandler()
| Method Detail |
|---|
public StoreShippingProcessHelper getShippingHelper()
public void setShippingHelper(StoreShippingProcessHelper pShippingHelper)
pShippingHelper - the shipping helper component to set.public CheckoutOptionSelections getCheckoutOptionSelections()
public void setCheckoutOptionSelections(CheckoutOptionSelections pCheckoutOptionSelections)
pCheckoutOptionSelections - the CheckoutOptionSelections component to set.public void setShippingGroupInitializers(atg.nucleus.ServiceMap pShippingGroupInitializers)
setShippingGroupInitializers in class atg.commerce.order.purchase.ShippingGroupFormHandlerpShippingGroupInitializers - a ServiceMap valuepublic atg.nucleus.ServiceMap getShippingGroupInitializers()
getShippingGroupInitializers in class atg.commerce.order.purchase.ShippingGroupFormHandlerServiceMap valuepublic java.lang.String getDefaultShippingMethod()
public void setDefaultShippingMethod(java.lang.String pDefaultShippingMethod)
pDefaultShippingMethod - -
the default shipping method to set.public atg.commerce.util.PlaceUtils getPlaceUtils()
public void setPlaceUtils(atg.commerce.util.PlaceUtils pPlaceUtils)
pPlaceUtils - public java.lang.String getShippingMethod()
public void setShippingMethod(java.lang.String pShippingMethod)
pShippingMethod - - the shipping method to set.public boolean isSingleShippingGroupCheckout()
public void setSingleShippingGroupCheckout(boolean pSingleShippingGroupCheckout)
pSingleShippingGroupCheckout - -
true if single shipping group should be checkouted,
false - otherwise.public boolean getUseShippingForBilling()
public void setUseShippingForBilling(boolean pUseShippingForBilling)
pUseShippingForBilling - - true if shipping address
should be used for billing, false otherwise.public boolean getSaveShippingAddress()
public void setSaveShippingAddress(boolean pSaveShippingAddress)
pSaveShippingAddress - - true if shipping address
should be saved, false - otherwise.public boolean getShipToNewAddress()
public void setShipToNewAddress(boolean pShipToNewAddress)
pShipToNewAddress - - true if shipping will be performed to the new address,
false - otherwise.public java.lang.String getShipToAddressName()
public void setShipToAddressName(java.lang.String pShipToAddressName)
pShipToAddressName - - shipping address.public java.lang.String getNewShipToAddressName()
public void setNewShipToAddressName(java.lang.String pNewShipToAddressName)
pNewShipToAddressName - - new shipping address.public java.lang.String getEditShippingAddressNickName()
public void setEditShippingAddressNickName(java.lang.String pEditShippingAddressNickName)
pEditShippingAddressNickName - -
the edit shipping address nickname to set.public java.lang.String getShippingAddressNewNickName()
public void setShippingAddressNewNickName(java.lang.String pShippingAddressNewNickName)
pShippingAddressNewNickName - -
the shipping address new nickname to set.public atg.core.util.Address getAddress()
public void setAddress(atg.core.util.Address pAddress)
pAddress - - the address to set.public atg.core.util.Address getEditAddress()
public void setEditAddress(atg.core.util.Address pEditAddress)
pEditAddress - - the edit address to set.public java.lang.String getMoveToBillingErrorURL()
public void setMoveToBillingErrorURL(java.lang.String pMoveToBillingErrorURL)
pMoveToBillingErrorURL - - move to billing
error redirect URL.public java.lang.String getMoveToBillingSuccessURL()
public void setMoveToBillingSuccessURL(java.lang.String pMoveToBillingSuccessURL)
pMoveToBillingSuccessURL - - move to billing
success redirect URL.public java.lang.String getUpdateElectronicShippingInfoSuccessURL()
public void setUpdateElectronicShippingInfoSuccessURL(java.lang.String pUpdateElectronicShippingInfoSuccessURL)
pUpdateElectronicShippingInfoSuccessURL - -
the update electronic shipping information success
redirect URL to set.public java.lang.String getUpdateElectronicShippingInfoErrorURL()
public void setUpdateElectronicShippingInfoErrorURL(java.lang.String pUpdateElectronicShippingInfoErrorURL)
pUpdateElectronicShippingInfoErrorURL - -
the update electronic shipping information error
redirect URL to set.public java.lang.String getAddShippingAddressSuccessURL()
public void setAddShippingAddressSuccessURL(java.lang.String pAddShippingAddressSuccessURL)
pAddShippingAddressSuccessURL - -
the add shipping address success redirect URL to set.public java.lang.String getAddShippingAddressErrorURL()
public void setAddShippingAddressErrorURL(java.lang.String pAddShippingAddressErrorURL)
pAddShippingAddressErrorURL - -
the add shipping address error redirect URL to set.public java.lang.String getEditShippingAddressSuccessURL()
public void setEditShippingAddressSuccessURL(java.lang.String pEditShippingAddressSuccessURL)
pEditShippingAddressSuccessURL - -
the edit shipping address success redirect URL to set.public java.lang.String getEditShippingAddressErrorURL()
public void setEditShippingAddressErrorURL(java.lang.String pEditShippingAddressErrorURL)
pEditShippingAddressErrorURL - -
the edit shipping address error redirect URL to set.public java.util.List getGiftShippingGroups()
getGiftShippingGroups in class atg.commerce.order.purchase.ShippingGroupFormHandlerpublic java.util.List getElectronicShippingGroups()
getElectronicShippingGroups in class atg.commerce.order.purchase.ShippingGroupFormHandlerpublic java.util.List getAllHardgoodCommerceItemShippingInfos()
getAllHardgoodCommerceItemShippingInfos in class atg.commerce.order.purchase.ShippingGroupFormHandlerList value - All hardgood commerce item shipping information.public boolean isMultipleNonGiftHardgoodItems()
public boolean handleCancel(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
handleCancel in class atg.droplet.GenericFormHandlerjavax.servlet.ServletException
java.io.IOException
public boolean handleMoveToBilling(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
boolean value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
public void preMoveToBilling(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
public void moveToBilling(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occursShippingGroupFormHandler.applyShippingGroups(DynamoHttpServletRequest, DynamoHttpServletResponse)
public void postMoveToBilling(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
Initializes the billing address from the shipping address if the user selected that option.
Saves addresses in the profile, if the user selected that option.
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
protected void preShipToProfileAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
protected void shipToProfileAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
protected void postShipToProfileAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
protected void preShipToMultipleAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
protected void shipToMultipleAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
protected void postShipToMultipleAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
protected void preShipToNewAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
protected void shipToNewAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
protected void postShipToNewAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
protected void preSetupGiftShippingDetails(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
protected void setupGiftShippingDetails(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
protected void postSetupGiftShippingDetails(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
protected void repriceOrder(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
public boolean handleUpdateElectronicShippingInfo(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if servlet error occurs
java.io.IOException - if IO error occurs
public void preUpdateElectronicShippingInfo(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
public void updateElectronicShippingInfo(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
public void postUpdateElectronicShippingInfo(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
public boolean handleAddShippingAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if servlet error occurs
java.io.IOException - if IO error occurs
public void preAddShippingAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
public void addShippingAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
public void postAddShippingAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
public boolean handleEditShippingAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if servlet error occurs
java.io.IOException - if IO error occurs
public void preEditShippingAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
public void editShippingAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
public void postEditShippingAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
protected void validateShippingRestrictions(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occursprotected void validateAddressNickname(java.lang.String pNickName)
pNickName - - nickname
protected void validateShippingAddress(atg.core.util.Address pAddress,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws java.io.IOException,
javax.servlet.ServletException
pAddress - - addresspRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
protected void validateShippingMethod(atg.core.util.Address pAddress,
java.lang.String pShippingMethod,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws java.io.IOException,
javax.servlet.ServletException
pAddress - - addresspRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
protected void validateShippingMethodForGiftShippingGroups(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
protected void validateShippingMethodForContainerShippingGroups(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs
public boolean handleInitSingleShippingForm(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
This method expects that the ShippingGroupMapContainer has been initialized with shipping groups.
The following form properties are initialized:
NEW_ADDRESS
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if servlet error occurs
java.io.IOException - if IO error occurs
public boolean handleInitMultipleShippingForm(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
The following form properties are initialized:
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if servlet error occurs
java.io.IOException - if IO error occurs
public boolean handleInitEditAddressForm(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
Initialization only takes place if there aren't any form errors.
pRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
javax.servlet.ServletException - if servlet error occurs
java.io.IOException - if IO error occurs
protected void processShippingRestrictionsErrors(java.util.List pshippingValidationResult,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws java.io.IOException,
javax.servlet.ServletException
pshippingValidationResult - shipping validation resultspRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
java.io.IOException
javax.servlet.ServletException
protected java.lang.String createPricingErrorMessage(atg.commerce.pricing.PricingException pe,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
pe - - pricing exceptionpRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
protected void addAddressValidationFormError(java.util.List pMissingProperties,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
pMissingProperties - - missing properties listpRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||