atg.commerce.order.purchase
Class UpdateShippingGroupFormHandler

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.droplet.EmptyFormHandler
              extended by atg.droplet.GenericFormHandler
                  extended by atg.commerce.order.purchase.PurchaseProcessFormHandler
                      extended by atg.commerce.order.purchase.UpdateShippingGroupFormHandler
All Implemented Interfaces:
atg.commerce.util.PipelineErrorHandler, DropletFormHandler, NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, java.util.EventListener

public class UpdateShippingGroupFormHandler
extends PurchaseProcessFormHandler

The UpdateShippingGroupFormHandler class is used to update any ShippingGroup type. This class could be used to update shipping groups in the ShippingGroupMapContainer and Order In order to validate each shipping group type, this class is using validateShippingGroupChainId property value pipeline chain. The default configured value for validateShippingGroupChainId is validateShippingGroup. If you have any additional shipping groups, you need to add validation for the shipping group type. Also if you want to perform anything other than the out of box validation, you need to over ride the validation pipe line processors. The shipping group information is copied using the ShippingGroupPropertyContainer implementation. If any shipping group does not implement this interface, the shipping group information is not copied and this class won't work. Either you need to implement this interface or extend the copyShippingGroupProperties(ShippingGroup, ShippingGroup, DynamoHttpServletRequest, DynamoHttpServletResponse) method.

This class has two flags to update shipping groups in the ShippingGroupMapContainter and Order. The flags are as follows:

See Also:
GenericFormHandler, PurchaseProcessFormHandler, UpdateHardgoodShippingGroupFormHandler

Field Summary
static java.lang.String CLASS_VERSION
           
static java.lang.String COULD_NOT_FIND_SHIPPING_GROUP_IN_CONTAINER
           
static java.lang.String COULD_NOT_FIND_VALID_NICKNAME
           
static java.lang.String MSG_COPY_ADDRESS
           
static java.lang.String MSG_NO_SHIPPING_GROUP_IN_ORDER
           
static java.lang.String MSG_ORDER_UPDATE_ERROR
           
static java.lang.String MSG_VALIDATE_SHIPPING_GROUP
           
protected  ShippingGroup mShippingGroup
           
protected  java.lang.String mShippingGroupName
           
protected  java.lang.String mShippingGroupType
           
protected  boolean mUpdateContainer
           
protected  boolean mUpdateOrder
           
protected  java.lang.String mUpdateShippingGroupErrorURL
           
protected  java.lang.String mUpdateShippingGroupSuccessURL
           
protected  java.lang.String mValidateShippingGroupChainId
          The name of the chain that is used to validate shipping group
protected  ShippingGroup mWorkingShippingGroup
           
static java.lang.String NOT_VALID_SHIPPING_GROUP_NICKNAME
           
 
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
UpdateShippingGroupFormHandler()
          Creates a new UpdateShippingGroupFormHandler instance.
 
Method Summary
protected  void copyConfiguration()
          Copy property settings from the optional PurchaseProcessConfiguration component.
protected  void copyShippingGroupProperties(ShippingGroup pSrcShippingGroup, ShippingGroup pDestShippingGroup, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
          This methods copies information from one shipping group to the other shipping group.
 ShippingGroup getShippingGroup()
          Returns the shippingGroup.
 java.lang.String getShippingGroupName()
          Returns the shippingGroupName This property is used to look up the shipping group name in the ShippingGroupMapContainer.
 java.lang.String getShippingGroupType()
          Returns the shippingGroupType.
 java.lang.String getUpdateShippingGroupErrorURL()
          Returns the updateShippingGroupErrorURL
 java.lang.String getUpdateShippingGroupSuccessURL()
          Returns the updateShippingGroupSuccessURL
 java.lang.String getValidateShippingGroupChainId()
          Return the validateShippingGroupChainId property.
 ShippingGroup getWorkingShippingGroup()
          Returns the workingShippingGroup.
 boolean handleUpdateShippingGroup(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
          handleUpdateShippingGroup is used to update a ShippingGroup.
 boolean isUpdateContainer()
          Returns the updateContainer This flag is used to update the updated shipping group information in the ShippingGroupMapContainer.
 boolean isUpdateOrder()
          Returns the updateOrder This flag is used to update the new information in the order.
 void postUpdateShippingGroup(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
          postUpdateShippingGroup is for work that must happen after updating ShippingGroup.
 void preUpdateShippingGroup(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
          preUpdateShippingGroup is for work that must happen before updating ShippingGroup.
 void setShippingGroup(ShippingGroup pShippingGroup)
          Sets the shippingGroup.
 void setShippingGroupByNickname(java.lang.String pShippingGroupNickname)
          This method is used to locate the original shipping group from the ShippingGroupMapContainer by the pShippingGroupNickname and copies the information from original shipping group to working shipping group.
 void setShippingGroupName(java.lang.String pShippingGroupName)
          Sets the shippingGroupName This property is used to look up the shipping group name in the ShippingGroupMapContainer.
 void setShippingGroupType(java.lang.String pShippingGroupType)
          Sets the shippingGroupType This property is used to create the working version of the shipping group type.
 void setUpdateContainer(boolean pUpdateContainer)
          Sets the updateContainer This flag is used to update the updated shipping group information in the ShippingGroupMapContainer.
 void setUpdateOrder(boolean pUpdateOrder)
          Sets the updateOrder This flag is used to update the new information in the order.
 void setUpdateShippingGroupErrorURL(java.lang.String pUpdateShippingGroupErrorURL)
          Sets the updateShippingGroupErrorURL
 void setUpdateShippingGroupSuccessURL(java.lang.String pUpdateShippingGroupSuccessURL)
          Sets the updateShippingGroupSuccessURL
 void setValidateShippingGroupChainId(java.lang.String pValidateShippingGroupChainId)
          Set the validateShippingGroupChainId property.
 void setWorkingShippingGroup(ShippingGroup pWorkingShippingGroup)
          Sets the workingShippingGroup.
 void updateContainer(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse, ShippingGroup pWorkingShippingGroup, java.lang.String pShippingGroupName)
          This methods updates the new information to the shipping group which is in the ShippingGroupMapContainer.
 void updateOrder(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse, ShippingGroup pWorkingShippingGroup, ShippingGroup pOriginalShippingGroup)
          This method is used to update new information from pWorkingShippingGroup to pOriginalShippingGroup (which is in the order).
 void updateShippingGroup(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
          The updateShippingGroup updates ShippingGroup.
protected  void validateShippingGroup(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse, ShippingGroup pShippingGroup, java.lang.String pShippingGroupName)
          This method is invokes the pipeline chain to validate the shipping group.
 
Methods inherited from class atg.commerce.order.purchase.PurchaseProcessFormHandler
acquireTransactionLock, acquireTransactionLock, afterSet, beforeSet, checkFormRedirect, commitTransaction, 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

CLASS_VERSION

public static java.lang.String CLASS_VERSION

COULD_NOT_FIND_VALID_NICKNAME

public static final java.lang.String COULD_NOT_FIND_VALID_NICKNAME
See Also:
Constant Field Values

COULD_NOT_FIND_SHIPPING_GROUP_IN_CONTAINER

public static final java.lang.String COULD_NOT_FIND_SHIPPING_GROUP_IN_CONTAINER
See Also:
Constant Field Values

NOT_VALID_SHIPPING_GROUP_NICKNAME

public static final java.lang.String NOT_VALID_SHIPPING_GROUP_NICKNAME
See Also:
Constant Field Values

MSG_COPY_ADDRESS

public static final java.lang.String MSG_COPY_ADDRESS
See Also:
Constant Field Values

MSG_NO_SHIPPING_GROUP_IN_ORDER

public static final java.lang.String MSG_NO_SHIPPING_GROUP_IN_ORDER
See Also:
Constant Field Values

MSG_ORDER_UPDATE_ERROR

public static final java.lang.String MSG_ORDER_UPDATE_ERROR
See Also:
Constant Field Values

MSG_VALIDATE_SHIPPING_GROUP

public static final java.lang.String MSG_VALIDATE_SHIPPING_GROUP
See Also:
Constant Field Values

mWorkingShippingGroup

protected ShippingGroup mWorkingShippingGroup

mShippingGroup

protected ShippingGroup mShippingGroup

mShippingGroupType

protected java.lang.String mShippingGroupType

mShippingGroupName

protected java.lang.String mShippingGroupName

mUpdateContainer

protected boolean mUpdateContainer

mUpdateOrder

protected boolean mUpdateOrder

mUpdateShippingGroupSuccessURL

protected java.lang.String mUpdateShippingGroupSuccessURL

mUpdateShippingGroupErrorURL

protected java.lang.String mUpdateShippingGroupErrorURL

mValidateShippingGroupChainId

protected java.lang.String mValidateShippingGroupChainId
The name of the chain that is used to validate shipping group

Constructor Detail

UpdateShippingGroupFormHandler

public UpdateShippingGroupFormHandler()
Creates a new UpdateShippingGroupFormHandler instance.

Method Detail

getWorkingShippingGroup

public ShippingGroup getWorkingShippingGroup()
Returns the workingShippingGroup. This shipping group instance is used to make the temporary updates. Once all the necessary information is updated and validated, the updated information is copied from this shipping group instance to shippingGroup.

Returns:
workingShippingGroup

setWorkingShippingGroup

public void setWorkingShippingGroup(ShippingGroup pWorkingShippingGroup)
Sets the workingShippingGroup. This shipping group instance is used to make the temporary updates. Once all the necessary information is updated and validated, the updated information is copied from this shipping group instance to shippingGroup.

Parameters:
pWorkingShippingGroup -

getShippingGroup

public ShippingGroup getShippingGroup()
Returns the shippingGroup.

This is the original version of the shipping group (before making any updates).

Returns:
the shippingGroup

setShippingGroup

public void setShippingGroup(ShippingGroup pShippingGroup)
Sets the shippingGroup.

This is the original version of the shipping group (before making any updates).

Parameters:
pShippingGroup - the shippingGroup to set

getShippingGroupType

public java.lang.String getShippingGroupType()
Returns the shippingGroupType. This property is used to create the working version of the shipping group type.

Returns:
the shippingGroupType

setShippingGroupType

public void setShippingGroupType(java.lang.String pShippingGroupType)
Sets the shippingGroupType This property is used to create the working version of the shipping group type.

Parameters:
pShippingGroupType - the shippingGroupType to set

getShippingGroupName

public java.lang.String getShippingGroupName()
Returns the shippingGroupName This property is used to look up the shipping group name in the ShippingGroupMapContainer.

Returns:
the shippingGroupName

setShippingGroupName

public void setShippingGroupName(java.lang.String pShippingGroupName)
Sets the shippingGroupName This property is used to look up the shipping group name in the ShippingGroupMapContainer.

Parameters:
pShippingGroupName - the shippingGroupName to set

isUpdateContainer

public boolean isUpdateContainer()
Returns the updateContainer This flag is used to update the updated shipping group information in the ShippingGroupMapContainer. If the flag is turned on the new information is updated to the container.Otherwise it won't.

Returns:
Returns the updateContainer.

setUpdateContainer

public void setUpdateContainer(boolean pUpdateContainer)
Sets the updateContainer This flag is used to update the updated shipping group information in the ShippingGroupMapContainer. If the flag is turned on the new information is updated to the container.Otherwise it won't.

Parameters:
pUpdateContainer - The updateContainer to set.

isUpdateOrder

public boolean isUpdateOrder()
Returns the updateOrder This flag is used to update the new information in the order. If the flag is turned on the new information is updated to the order.Otherwise it won't.

Returns:
Returns the updateOrder.

setUpdateOrder

public void setUpdateOrder(boolean pUpdateOrder)
Sets the updateOrder This flag is used to update the new information in the order. If the flag is turned on the new information is updated to the order.Otherwise it won't.

Parameters:
pUpdateOrder - The updateOrder to set.

setValidateShippingGroupChainId

public void setValidateShippingGroupChainId(java.lang.String pValidateShippingGroupChainId)
Set the validateShippingGroupChainId property. Using this pipeline chain id value the shipping group is validated.

Parameters:
pValidateShippingGroupChainId -

getValidateShippingGroupChainId

public java.lang.String getValidateShippingGroupChainId()
Return the validateShippingGroupChainId property. Using this pipeline chain id value the shipping group is validated.

Returns:
validateShippingGroupChainId

getUpdateShippingGroupSuccessURL

public java.lang.String getUpdateShippingGroupSuccessURL()
Returns the updateShippingGroupSuccessURL

Returns:
the updateShippingGroupSuccessURL

setUpdateShippingGroupSuccessURL

public void setUpdateShippingGroupSuccessURL(java.lang.String pUpdateShippingGroupSuccessURL)
Sets the updateShippingGroupSuccessURL

Parameters:
pUpdateShippingGroupSuccessURL - the updateShippingGroupSuccessURL to set

getUpdateShippingGroupErrorURL

public java.lang.String getUpdateShippingGroupErrorURL()
Returns the updateShippingGroupErrorURL

Returns:
the updateShippingGroupErrorURL

setUpdateShippingGroupErrorURL

public void setUpdateShippingGroupErrorURL(java.lang.String pUpdateShippingGroupErrorURL)
Sets the updateShippingGroupErrorURL

Parameters:
pUpdateShippingGroupErrorURL - the updateShippingGroupErrorURL to set

handleUpdateShippingGroup

public boolean handleUpdateShippingGroup(DynamoHttpServletRequest pRequest,
                                         DynamoHttpServletResponse pResponse)
                                  throws javax.servlet.ServletException,
                                         java.io.IOException
handleUpdateShippingGroup is used to update a ShippingGroup.

Parameters:
pRequest - a DynamoHttpServletRequest value
pResponse - a DynamoHttpServletResponse value
Returns:
a boolean value
Throws:
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs

preUpdateShippingGroup

public void preUpdateShippingGroup(DynamoHttpServletRequest pRequest,
                                   DynamoHttpServletResponse pResponse)
                            throws javax.servlet.ServletException,
                                   java.io.IOException
preUpdateShippingGroup is for work that must happen before updating ShippingGroup.

Parameters:
pRequest - a DynamoHttpServletRequest value
pResponse - a DynamoHttpServletResponse value
Throws:
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs

postUpdateShippingGroup

public void postUpdateShippingGroup(DynamoHttpServletRequest pRequest,
                                    DynamoHttpServletResponse pResponse)
                             throws javax.servlet.ServletException,
                                    java.io.IOException
postUpdateShippingGroup is for work that must happen after updating ShippingGroup.

Parameters:
pRequest - a DynamoHttpServletRequest value
pResponse - a DynamoHttpServletResponse value
Throws:
javax.servlet.ServletException - if an error occurs
java.io.IOException - if an error occurs

updateShippingGroup

public void updateShippingGroup(DynamoHttpServletRequest pRequest,
                                DynamoHttpServletResponse pResponse)
                         throws javax.servlet.ServletException,
                                java.io.IOException
The updateShippingGroup updates ShippingGroup. First this method validates the working copy of the shipping group. If there is no errors in the validation, then the updated information is copied.

This class has two flags to update shipping groups in the ShippingGroupMapContainter and Order. The flags are as follows:

Based on the above flag configuration, the respective information is updated.

Parameters:
pRequest - a DynamoHttpServletRequest value
pResponse - a DynamoHttpServletResponse value
Throws:
javax.servlet.ServletException
java.io.IOException

validateShippingGroup

protected void validateShippingGroup(DynamoHttpServletRequest pRequest,
                                     DynamoHttpServletResponse pResponse,
                                     ShippingGroup pShippingGroup,
                                     java.lang.String pShippingGroupName)
                              throws javax.servlet.ServletException,
                                     java.io.IOException
This method is invokes the pipeline chain to validate the shipping group. The pipeline chain configured in the validateShippingGroupChainId property is used to validate the shipping group.

The default configured value for validateShippingGroupChainId is validateShippingGroup.

Also this method checks for the emptiness of the shipping group name. If the shipping group name is empty, this method adds an exception.

Parameters:
pRequest -
pResponse -
pShippingGroup - The working shipping group or any shipping group that needs to be validated.
pShippingGroupName - The shipping group name to be validated.
Throws:
javax.servlet.ServletException
java.io.IOException

updateContainer

public void updateContainer(DynamoHttpServletRequest pRequest,
                            DynamoHttpServletResponse pResponse,
                            ShippingGroup pWorkingShippingGroup,
                            java.lang.String pShippingGroupName)
                     throws javax.servlet.ServletException,
                            java.io.IOException
This methods updates the new information to the shipping group which is in the ShippingGroupMapContainer. This method gets the shipping group by using the pShippingGroupName and updates the new information.

Parameters:
pRequest -
pResponse -
pWorkingShippingGroup - The working copy of the shipping group. From this shipping group the information is copied.
pShippingGroupName - The shipping group name parameter tells which shipping group to be updated.
Throws:
javax.servlet.ServletException
java.io.IOException

updateOrder

public void updateOrder(DynamoHttpServletRequest pRequest,
                        DynamoHttpServletResponse pResponse,
                        ShippingGroup pWorkingShippingGroup,
                        ShippingGroup pOriginalShippingGroup)
                 throws javax.servlet.ServletException,
                        java.io.IOException
This method is used to update new information from pWorkingShippingGroup to pOriginalShippingGroup (which is in the order).

Parameters:
pRequest -
pResponse -
pWorkingShippingGroup - The working copy of the shipping group. From this shipping group the information is copied.
pOriginalShippingGroup - The original shipping group that needs to be updated in the order.
Throws:
javax.servlet.ServletException
java.io.IOException

setShippingGroupByNickname

public void setShippingGroupByNickname(java.lang.String pShippingGroupNickname)
This method is used to locate the original shipping group from the ShippingGroupMapContainer by the pShippingGroupNickname and copies the information from original shipping group to working shipping group.

Parameters:
pShippingGroupNickname - This property is used to look up shipping group from the container

copyShippingGroupProperties

protected void copyShippingGroupProperties(ShippingGroup pSrcShippingGroup,
                                           ShippingGroup pDestShippingGroup,
                                           DynamoHttpServletRequest pRequest,
                                           DynamoHttpServletResponse pResponse)
                                    throws javax.servlet.ServletException,
                                           java.io.IOException
This methods copies information from one shipping group to the other shipping group. The method expects the shipping group to implement ShippingGroupPropertyContainer. If the shipping group does not implement this ShippingGroupPropertyContainer interface, the form exception is added.

If you want to copy the shipping group information between two shipping groups, either you need to implement this ShippingGroupPropertyContainer interface or over ride this method.

Parameters:
pSrcShippingGroup - The shipping group from where the information needs to be copied
pDestShippingGroup - The destination shipping group
pRequest -
pResponse -
Throws:
javax.servlet.ServletException
java.io.IOException

copyConfiguration

protected void copyConfiguration()
Copy property settings from the optional PurchaseProcessConfiguration component. Property values that were configured locally are preserved. Configures the following properties (if not already set):

Overrides:
copyConfiguration in class PurchaseProcessFormHandler