|
|||||||||
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.commerce.csr.order.CSRShippingGroupFormHandler
public class CSRShippingGroupFormHandler
The CSRShippingGroupFormHandler
adds audit-logging capabilities to the
ShippingGroupFormHandler
ShippingGroupFormHandler
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
static java.lang.String |
COULD_NOT_ADD_SHIPPING_GROUP
|
static java.lang.String |
ERROR_WHILE_APPLYING_EXCG_ORDER_PMTS
|
static java.lang.String |
ERROR_WHILE_FETCHING_PRICE_LIST
|
static java.lang.String |
ERROR_WHILE_PERSISTING_ORDER
|
static java.lang.String |
ERROR_WHILE_REPRICING_ORDER
|
static java.lang.String |
HARD_GOOD
|
static java.lang.String |
JSON_ERROR_ATTRIBUTE
|
protected CSRAgentTools |
mCSRAgentTools
|
protected java.lang.String |
mPostApplyShippingGroupsPricingOp
|
static java.lang.String |
MSG_ERROR_DURING_PAYMENT_GROUPS_VALIDATION
|
static java.lang.String |
MY_RESOURCE_NAME
|
static java.lang.String |
NULL_SHIPPING_GROUP_NAME
|
Fields inherited from class atg.commerce.order.purchase.ShippingGroupFormHandler |
---|
mAllHardgoodCommerceItemShippingInfos, 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 | |
---|---|
CSRShippingGroupFormHandler()
|
Method Summary | |
---|---|
void |
addShippingGroupValidationErrors(java.util.Collection pFormExceptions)
The form errors are not added to the request. |
java.lang.String |
applyExchangeProcessPayments(java.lang.String pHandlerSuccessURL)
This method calls ReturnManager.applyExchangeProcessPayments() and applies the
payment between the original order and replacement order. |
void |
applyShippingMethods(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
applyShippingMethods is used in the multiple shipping functionality. |
protected void |
changeShippingGroupForCommerceItemShippingInfos(java.util.Collection pCommerceItemShippingInfos,
java.lang.String pShippingGroupName,
java.lang.String pShippingMethod)
Changes the shipping group name and shipping method for a collection of items in the CommerceItemShippingInfoContainer |
java.util.Map |
createRepriceParameterMap()
Creates the extra parameter map that is used when the order is repriced after form handler modifications to the order. |
CSRAgentMessagingTools |
getAgentMessagingTools()
Returns component for sending agent messages |
java.lang.String |
getApplyShippingMethodsErrorURL()
|
java.lang.String |
getApplyShippingMethodsSuccessURL()
|
java.lang.String |
getCompleteOrderPageURL()
Returns the completeOrderPageURL. |
CSRCreateHardgoodShippingGroupFormHandler |
getCreateHardgoodShippingGroupFormHandler()
|
CSRAgentTools |
getCSRAgentTools()
|
java.lang.String |
getModifyOrderPricingOp()
Returns the pricing operation that should be performed when the order is updated |
java.lang.String |
getNewAddressNickname()
|
java.lang.String |
getPostApplyShippingGroupsPricingOp()
Returns the pricing operation used after apply shipping groups |
protected atg.repository.RepositoryItem |
getPriceList()
This method over-rides the core commerce form handler method. |
java.lang.String |
getRefundMethodsPageURL()
Returns the refundMethodsPageURL. |
ReturnManager |
getReturnManager()
Returns the returnManager. |
java.lang.String |
getShippingMethod()
|
java.lang.String |
getShipToAddressNickname()
|
java.lang.String |
getSingleShippingGroupCheckoutErrorURL()
|
java.lang.String |
getSingleShippingGroupCheckoutSuccessURL()
|
atg.commerce.pricing.PricingModelHolder |
getSubmittedOrderPricingModels()
Returns property SubmittedOrderPricingModels |
java.lang.String |
getTicketId()
Returns the Id of the current ticket |
java.util.Locale |
getUserLocale(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method over-rides the core commerce method and calls CSRAgentTools.getActiveCustomerPricingLocale()
to get the locale. |
atg.commerce.pricing.PricingModelHolder |
getUserPricingModels()
Returns the userPricingModels if the order is in one of the incomplete states define by CSRAgentTools. |
boolean |
handleApplyShippingMethods(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method is used in the multiple shipping functionality. |
boolean |
handlePreserveUserInputOnServerSide(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method is used to preserve any user inputs in the server's memeory. |
boolean |
handleSingleShippingGroupCheckout(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method is specifically used single shipping pages. |
boolean |
isMultipleNonGiftHardgoodItems()
Determines if the total quantity of all non-gift hardgood items is more than one. |
boolean |
isPersistOrder()
|
void |
postApplyShippingGroups(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
postApplyShippingGroups is for work that must happen after
the ShippingGroups are applied. |
void |
postApplyShippingMethods(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
postApplyShippingMethods is for work that must happen after
the user selections are saved. |
void |
postPreserveUserInputOnServerSide(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
postPreserveUserInputOnServerSide is for work that must happen after
the user selections are saved. |
void |
postSingleShippingGroupCheckout(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method is used for ShippingGroupCheckout post processing. |
void |
preApplyShippingMethods(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
preApplyShippingMethods is for work that must happen before
the user selections are retained. |
void |
prePreserveUserInputOnServerSide(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
prePreserveUserInputOnServerSide is for work that must happen before
the user selections are retained. |
void |
preSingleShippingGroupCheckout(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method is used for ShippingGroupCheckout pre processing. |
void |
runProcessValidatePaymentGroups(atg.commerce.order.Order pOrder,
java.util.Locale pLocale,
java.util.Map pExtraParameters)
runProcessValidatePaymentGroups runs a configurable Pipeline chain
to validate PaymentGroups or to prepare for the next checkout phase. |
void |
setAgentMessagingTools(CSRAgentMessagingTools pAgentMessagingTools)
Sets the component for sending agent messages |
void |
setApplyShippingMethodsErrorURL(java.lang.String pApplyShippingMethodsErrorURL)
|
void |
setApplyShippingMethodsSuccessURL(java.lang.String pApplyShippingMethodsSuccessURL)
|
void |
setCompleteOrderPageURL(java.lang.String pCompleteOrderPageURL)
Sets the completeOrderPageURL. |
void |
setCreateHardgoodShippingGroupFormHandler(CSRCreateHardgoodShippingGroupFormHandler pCreateHardgoodShippingGroupFormHandler)
|
void |
setCSRAgentTools(CSRAgentTools pCSRAgentTools)
Sets the property CSRAgentTools. |
void |
setModifyOrderPricingOp(java.lang.String pModifyOrderPricingOp)
This property should be set to the type of pricing operation that should be executed when the order is updated without adding or removing an item (e.g. |
void |
setNewAddressNickname(java.lang.String pNewAddressNickname)
|
void |
setPersistOrder(boolean pPersistOrder)
|
void |
setPostApplyShippingGroupsPricingOp(java.lang.String pPostApplyShippingGroupsPricingOp)
|
void |
setRefundMethodsPageURL(java.lang.String pRefundMethodsPageURL)
Sets the refundMethodsPageURL. |
void |
setReturnManager(ReturnManager pReturnManager)
Sets the returnManager. |
void |
setShippingMethod(java.lang.String pShippingMethod)
|
void |
setShipToAddressNickname(java.lang.String pShipToAddressNickname)
|
void |
setSingleShippingGroupCheckoutErrorURL(java.lang.String pSingleShippingGroupCheckoutErrorURL)
|
void |
setSingleShippingGroupCheckoutSuccessURL(java.lang.String pSingleShippingGroupCheckoutSuccessURL)
|
void |
setSubmittedOrderPricingModels(atg.commerce.pricing.PricingModelHolder pSubmittedOrderPricingModels)
Sets property SubmittedOrderPricingModels |
void |
singleShippingGroupCheckout(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
In CSC application, in single shipping page, agnet could add a shipping group or select an existing address and shipping methods. |
protected void |
splitCommerceItemShippingInfoByQuantity(atg.commerce.order.purchase.CommerceItemShippingInfo pCommerceItemShippingInfo,
long pSplitQuantity)
splitCommerceItemShippingInfoByQuantity extends the corresponding method
in ShippingGroupFormHandler. |
Methods inherited from class atg.commerce.order.purchase.ShippingGroupFormHandler |
---|
addShippingGroupToMap, applyCommerceItemShippingInfo, applyDefaultShippingGroup, applyShippingGroups, consolidateShippingInfos, getAllHardgoodCommerceItemShippingInfos, getApplyShippingGroupsErrorURL, getApplyShippingGroupsSuccessURL, getCurrentList, getCurrentShippingGroup, getDefaultShippingGroupName, getElectronicShippingGroups, getFirstNonGiftHardgoodShippingGroupWithRels, getGiftShippingGroups, getListId, getLocale, getNonGiftHardgoodShippingGroupCount, getNonGiftHardgoodShippingGroups, getShippingGroup, getShippingGroupId, getShippingGroupInitializers, getSpecifyDefaultShippingGroupErrorURL, getSpecifyDefaultShippingGroupSuccessURL, getSplitShippingInfosErrorURL, getSplitShippingInfosSuccessURL, getValidateShippingGroupsChainId, handleApplyShippingGroups, handleSpecifyDefaultShippingGroup, handleSplitShippingInfos, isAnyElectronicShippingGroups, isAnyHardgoodShippingGroups, isAnyNonGiftHardgoodShippingGroups, isApplyDefaultShippingGroup, isConsolidateShippingInfosBeforeApply, isMultipleHardgoodShippingGroupsWithRelationships, isMultipleNonGiftHardgoodShippingGroups, isShippingGroupInOrder, isValidateShippingGroups, mergeCommerceItemShippingInfos, postSpecifyDefaultShippingGroup, postSplitShippingInfos, preApplyShippingGroups, preSpecifyDefaultShippingGroup, preSplitShippingInfos, removeShippingGroupFromMap, runProcessValidateShippingGroups, setApplyDefaultShippingGroup, setApplyShippingGroupsErrorURL, setApplyShippingGroupsSuccessURL, setConsolidateShippingInfosBeforeApply, setCurrentList, setCurrentShippingGroup, setDefaultShippingGroupName, setListId, setLocale, setShippingGroupId, setShippingGroupInitializers, setSpecifyDefaultShippingGroupErrorURL, setSpecifyDefaultShippingGroupSuccessURL, setSplitShippingInfosErrorURL, setSplitShippingInfosSuccessURL, setValidateShippingGroups, setValidateShippingGroupsChainId, specifyDefaultShippingGroup, splitShippingInfos |
Methods inherited from class atg.commerce.order.purchase.PurchaseProcessFormHandler |
---|
acquireTransactionLock, acquireTransactionLock, afterSet, beforeSet, checkFormRedirect, commitTransaction, copyConfiguration, 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, getPriceListId, getPriceListManager, getProfile, getProfileRepository, getPurchaseProcessHelper, getRepeatingRequestMonitor, getRepriceOrderChainId, getResourceBundle, getResourceBundleName, getSessionExpirationURL, getShippingGroupManager, getShippingGroupMapContainer, getShoppingCart, getTransactionManager, getUserLocale, 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, 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 final java.lang.String CLASS_VERSION
public static final java.lang.String MY_RESOURCE_NAME
public static final java.lang.String JSON_ERROR_ATTRIBUTE
public static final java.lang.String COULD_NOT_ADD_SHIPPING_GROUP
public static final java.lang.String NULL_SHIPPING_GROUP_NAME
public static final java.lang.String ERROR_WHILE_PERSISTING_ORDER
public static final java.lang.String ERROR_WHILE_REPRICING_ORDER
public static final java.lang.String ERROR_WHILE_FETCHING_PRICE_LIST
public static final java.lang.String ERROR_WHILE_APPLYING_EXCG_ORDER_PMTS
public static final java.lang.String MSG_ERROR_DURING_PAYMENT_GROUPS_VALIDATION
public static final java.lang.String HARD_GOOD
protected java.lang.String mPostApplyShippingGroupsPricingOp
protected CSRAgentTools mCSRAgentTools
Constructor Detail |
---|
public CSRShippingGroupFormHandler()
Method Detail |
---|
public java.lang.String getPostApplyShippingGroupsPricingOp()
Default is PricingConstants.OP_REPRICE_ORDER_TOTAL
public void setPostApplyShippingGroupsPricingOp(java.lang.String pPostApplyShippingGroupsPricingOp)
public java.lang.String getCompleteOrderPageURL()
public void setCompleteOrderPageURL(java.lang.String pCompleteOrderPageURL)
pCompleteOrderPageURL
- public java.lang.String getRefundMethodsPageURL()
public void setRefundMethodsPageURL(java.lang.String pRefundMethodsPageURL)
pRefundMethodsPageURL
- public ReturnManager getReturnManager()
public void setReturnManager(ReturnManager pReturnManager)
pReturnManager
- public java.lang.String getApplyShippingMethodsErrorURL()
public void setApplyShippingMethodsErrorURL(java.lang.String pApplyShippingMethodsErrorURL)
pApplyShippingMethodsErrorURL
- The applyShippingMethodsErrorURL to set.public java.lang.String getApplyShippingMethodsSuccessURL()
public void setApplyShippingMethodsSuccessURL(java.lang.String pApplyShippingMethodsSuccessURL)
pApplyShippingMethodsSuccessURL
- The applyShippingMethodsSuccessURL to set.public boolean isPersistOrder()
public void setPersistOrder(boolean pPersistOrder)
pPersistOrder
- The persistOrder to set.public java.lang.String getSingleShippingGroupCheckoutErrorURL()
public void setSingleShippingGroupCheckoutErrorURL(java.lang.String pSingleShippingGroupCheckoutErrorURL)
pSingleShippingGroupCheckoutErrorURL
- The singleShippingGroupCheckoutErrorURL to set.public java.lang.String getSingleShippingGroupCheckoutSuccessURL()
public void setSingleShippingGroupCheckoutSuccessURL(java.lang.String pSingleShippingGroupCheckoutSuccessURL)
pSingleShippingGroupCheckoutSuccessURL
- The singleShippingGroupCheckoutSuccessURL to set.public CSRCreateHardgoodShippingGroupFormHandler getCreateHardgoodShippingGroupFormHandler()
public void setCreateHardgoodShippingGroupFormHandler(CSRCreateHardgoodShippingGroupFormHandler pCreateHardgoodShippingGroupFormHandler)
pCreateHardgoodShippingGroupFormHandler
- The createHardgoodShippingGroupFormHandler to set.public java.lang.String getShippingMethod()
public void setShippingMethod(java.lang.String pShippingMethod)
pShippingMethod
- The shippingMethod to set.public void setModifyOrderPricingOp(java.lang.String pModifyOrderPricingOp)
atg.commerce.pricing.PricingConstants
interface. They include:
ORDER_TOTAL
ORDER_SUBTOTAL
ORDER_SUBTOTAL_SHIPPING
ORDER_SUBTOTAL_TAX
ITEMS
SHIPPING
ORDER
TAX
NO_REPRICE
pModifyOrderPricingOp
- a String
valuepublic java.lang.String getModifyOrderPricingOp()
String
valuepublic atg.commerce.pricing.PricingModelHolder getUserPricingModels()
getUserPricingModels
in class atg.commerce.order.purchase.PurchaseProcessFormHandler
PricingModelHolder
valuepublic void setSubmittedOrderPricingModels(atg.commerce.pricing.PricingModelHolder pSubmittedOrderPricingModels)
pSubmittedOrderPricingModels
- a SubmittedOrderPricingModels
valuepublic atg.commerce.pricing.PricingModelHolder getSubmittedOrderPricingModels()
SubmittedOrderPricingModels
valuepublic void setCSRAgentTools(CSRAgentTools pCSRAgentTools)
public CSRAgentTools getCSRAgentTools()
public void setAgentMessagingTools(CSRAgentMessagingTools pAgentMessagingTools)
pAgentMessagingTools
- public CSRAgentMessagingTools getAgentMessagingTools()
public java.lang.String getShipToAddressNickname()
public void setShipToAddressNickname(java.lang.String pShipToAddressNickname)
pShipToAddressNickname
- The shipToAddressNickname to set.public java.lang.String getNewAddressNickname()
public void setNewAddressNickname(java.lang.String pNewAddressNickname)
pNewAddressNickname
- The newAddressNickname to set.public java.lang.String getTicketId()
public void postApplyShippingGroups(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
postApplyShippingGroups
is for work that must happen after
the ShippingGroups are applied.
postApplyShippingGroups
in class atg.commerce.order.purchase.ShippingGroupFormHandler
pRequest
- a DynamoHttpServletRequest
valuepResponse
- a DynamoHttpServletResponse
value
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occursprotected void splitCommerceItemShippingInfoByQuantity(atg.commerce.order.purchase.CommerceItemShippingInfo pCommerceItemShippingInfo, long pSplitQuantity)
splitCommerceItemShippingInfoByQuantity
extends the corresponding method
in ShippingGroupFormHandler. It will send a SplitShippingGroup event that will be
captured by the audit-logging system
splitCommerceItemShippingInfoByQuantity
in class atg.commerce.order.purchase.ShippingGroupFormHandler
pCommerceItemShippingInfo
- a CommerceItemShippingInfo
valuepSplitQuantity
- a long
valuepublic void preSingleShippingGroupCheckout(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- pResponse
-
javax.servlet.ServletException
java.io.IOException
public boolean handleSingleShippingGroupCheckout(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- pResponse
-
javax.servlet.ServletException
java.io.IOException
public void postSingleShippingGroupCheckout(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- pResponse
-
javax.servlet.ServletException
java.io.IOException
public void singleShippingGroupCheckout(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
CreateHardgoodShippingGroupFormHandler
to create a new address. Also if the use of existing or new shipping group is desired, then this method applies the
shipping groups to the order.
pRequest
- pResponse
-
javax.servlet.ServletException
java.io.IOException
ShippingGroupFormHandler.applyShippingGroups(DynamoHttpServletRequest, DynamoHttpServletResponse)
public void addShippingGroupValidationErrors(java.util.Collection pFormExceptions)
pFormExceptions
- -- This method uses CreateHardgoodFormHandler
to add a shipping
group. but the error messages are not added to the request. This method adds the errors to the request.
protected void changeShippingGroupForCommerceItemShippingInfos(java.util.Collection pCommerceItemShippingInfos, java.lang.String pShippingGroupName, java.lang.String pShippingMethod)
pCommerceItemShippingInfos
- the colection of items to changepShippingGroupName
- if this is not null, each info item's shipping group name is set to this valuepShippingMethod
- if this is not null, each info item's shipping method is set to this value.public boolean handlePreserveUserInputOnServerSide(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- pResponse
-
javax.servlet.ServletException
java.io.IOException
public void prePreserveUserInputOnServerSide(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
prePreserveUserInputOnServerSide
is for work that must happen before
the user selections are retained.
pRequest
- a DynamoHttpServletRequest
valuepResponse
- a DynamoHttpServletResponse
value
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occurspublic void postPreserveUserInputOnServerSide(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
postPreserveUserInputOnServerSide
is for work that must happen after
the user selections are saved.
pRequest
- a DynamoHttpServletRequest
valuepResponse
- a DynamoHttpServletResponse
value
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occurspublic boolean handleApplyShippingMethods(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- pResponse
-
javax.servlet.ServletException
java.io.IOException
public void applyShippingMethods(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
applyShippingMethods
is used in the multiple shipping functionality. This method allows us to
save the user selected shipping methods for the shipping groups. In addition to that user's could save the
order if is transient.
pRequest
- a DynamoHttpServletRequest
valuepResponse
- a DynamoHttpServletResponse
value
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occurspublic void preApplyShippingMethods(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
preApplyShippingMethods
is for work that must happen before
the user selections are retained.
pRequest
- a DynamoHttpServletRequest
valuepResponse
- a DynamoHttpServletResponse
value
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occurspublic void postApplyShippingMethods(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
postApplyShippingMethods
is for work that must happen after
the user selections are saved.
pRequest
- a DynamoHttpServletRequest
valuepResponse
- a DynamoHttpServletResponse
value
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occurspublic java.util.Map createRepriceParameterMap()
createRepriceParameterMap
in class atg.commerce.order.purchase.PurchaseProcessFormHandler
protected atg.repository.RepositoryItem getPriceList()
CSREnvironmentTools.getCurrentPriceList()
and returns the current
pricelist.
getPriceList
in class atg.commerce.order.purchase.PurchaseProcessFormHandler
RepositoryItem
atg.commerce.csr.util.CSREnvironmentTools.getCurrentPriceList()
public java.lang.String applyExchangeProcessPayments(java.lang.String pHandlerSuccessURL)
ReturnManager.applyExchangeProcessPayments()
and applies the
payment between the original order and replacement order.
After appling the payments, this method provides the success urls.
pHandlerSuccessURL
-
public void runProcessValidatePaymentGroups(atg.commerce.order.Order pOrder, java.util.Locale pLocale, java.util.Map pExtraParameters) throws atg.service.pipeline.RunProcessException
runProcessValidatePaymentGroups
runs a configurable Pipeline chain
to validate PaymentGroups or to prepare for the next checkout phase.
pOrder
- an Order
valuepPricingModels
- a PricingModelHolder
valuepLocale
- a Locale
valuepProfile
- a RepositoryItem
valuepExtraParameters
- a Map
value
atg.service.pipeline.RunProcessException
- if an error occurspublic java.util.Locale getUserLocale(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
CSRAgentTools.getActiveCustomerPricingLocale()
to get the locale.
The CSC agents are working on a customer's orders. Because of the above reason, the application has to load customer's
default locale.
getUserLocale
in class atg.commerce.order.purchase.PurchaseProcessFormHandler
pRequest
- a DynamoHttpServletRequest
valuepResponse
- a DynamoHttpServletResponse
value
Locale
value
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occursCSRAgentTools.getActiveCustomerPricingLocale()
public boolean isMultipleNonGiftHardgoodItems()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |