atg.commerce.order.edit
Class OrderPropertyEditHandler

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.commerce.order.edit.CloneEditHandler
              extended by atg.commerce.order.edit.OrderPropertyEditHandler
All Implemented Interfaces:
atg.naming.AbsoluteNameable, NameContextBindingListener, NameContextElement, atg.naming.NameContextParentable, NameResolver, AdminableService, atg.nucleus.Configured, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, java.util.EventListener

public class OrderPropertyEditHandler
extends CloneEditHandler

This handler reconciles scalar properties of the order object.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
protected  ShippingGroupEditHandler mShippingGroupEditHandler
           
 
Fields inherited from class atg.commerce.order.edit.CloneEditHandler
mFulfillmentMessageSender, mKeyPropertyName, mOrderFulfillmentTools, mPropertiesToCopyOnUpdate, MY_RESOURCE_NAME, sResourceBundle, STATE_ADD_ITEMS, STATE_DELETE_ITEMS, STATE_UPDATE_ITEMS
 
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
OrderPropertyEditHandler()
           
 
Method Summary
 void applyChanges(CloneEditState pCloneEditState)
          Creates a single UpdateItem for order object and calls processUpdateItems
 java.util.List generateModifications(CloneEditState pCloneEditState)
          Generates Modification objects for changes in the original order's state and stateDetail properties.
 ShippingGroupEditHandler getShippingGroupEditHandler()
           
 void initializeCloneEditState(CloneEditState pCloneEditState)
          Copies the original pricingModels from the order's priceInfo and taxPriceInfo to the clone order's priceInfo and taxPriceInfo.
 void setShippingGroupEditHandler(ShippingGroupEditHandler pShippingGroupEditHandler)
           
protected  void updateItem(CloneEditState pCloneEditState, UpdateItem pUpdateItem)
          Extends updateItem to capture detect in the amountinfo object
protected  void updateShippingGroupSubtotalMaps(CloneEditState pCloneEditState)
          Updates the original order's shipping group subtotal Maps so they reference the correct shipping group ids.
 void validateCloneOrder(Order pOriginalOrder, Order pCloneOrder)
          Noop impl to satisfy the abstract interface
 
Methods inherited from class atg.commerce.order.edit.CloneEditHandler
addAddItem, addDeleteItem, addItem, addStateData, addUpdateItem, adjustCloneCommerceIdReferences, adjustOriginalCommerceIdReferences, cloneOrder, copyPricingModels, createAddItem, createDeleteItem, createUpdateItem, deleteItem, getAddItems, getCloneEditManager, getDeleteItems, getFulfillmentMessageSender, getKeyForObject, getKeyPropertyName, getObjectType, getOrderFulfillmentTools, getPropertiesToCopy, getPropertiesToCopyOnUpdate, getStateData, getStateMap, getUpdateItems, initializeReconciliationProcess, isAddedItem, parseConfigString, processAddItems, processDeleteItems, processUpdateItems, reconcileObjectProperties, sendFulfillmentNotifications, sendMessage, setCloneEditManager, setFulfillmentMessageSender, setKeyPropertyName, setOrderFulfillmentTools, setPropertiesToCopyOnUpdate
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


mShippingGroupEditHandler

protected ShippingGroupEditHandler mShippingGroupEditHandler
Constructor Detail

OrderPropertyEditHandler

public OrderPropertyEditHandler()
Method Detail

getShippingGroupEditHandler

public ShippingGroupEditHandler getShippingGroupEditHandler()

setShippingGroupEditHandler

public void setShippingGroupEditHandler(ShippingGroupEditHandler pShippingGroupEditHandler)

initializeCloneEditState

public void initializeCloneEditState(CloneEditState pCloneEditState)
                              throws CommerceException
Copies the original pricingModels from the order's priceInfo and taxPriceInfo to the clone order's priceInfo and taxPriceInfo.

Specified by:
initializeCloneEditState in class CloneEditHandler
Throws:
CommerceException
See Also:
CloneEditHandler.copyPricingModels(Object, Object, String)

applyChanges

public void applyChanges(CloneEditState pCloneEditState)
                  throws CommerceException
Creates a single UpdateItem for order object and calls processUpdateItems

Specified by:
applyChanges in class CloneEditHandler
Throws:
CommerceException

updateItem

protected void updateItem(CloneEditState pCloneEditState,
                          UpdateItem pUpdateItem)
                   throws CommerceException
Extends updateItem to capture detect in the amountinfo object

Overrides:
updateItem in class CloneEditHandler
Throws:
CommerceException
See Also:
CloneEditManager.detectUpdatesInFinalAmountInfo(Object, Object, String)

updateShippingGroupSubtotalMaps

protected void updateShippingGroupSubtotalMaps(CloneEditState pCloneEditState)
                                        throws CommerceException
Updates the original order's shipping group subtotal Maps so they reference the correct shipping group ids.

This is necessary after the reconciliation because the shipping group subtotal maps are copied from the clone order to the original and therefore, reference the clone shipping groups.

Parameters:
pCloneEditState -
Throws:
CommerceException

generateModifications

public java.util.List generateModifications(CloneEditState pCloneEditState)
Generates Modification objects for changes in the original order's state and stateDetail properties.

Overrides:
generateModifications in class CloneEditHandler
Parameters:
pCloneEditState -
Returns:
list of Modification objects

validateCloneOrder

public void validateCloneOrder(Order pOriginalOrder,
                               Order pCloneOrder)
                        throws CommerceException
Noop impl to satisfy the abstract interface

Specified by:
validateCloneOrder in class CloneEditHandler
Throws:
CommerceException