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.NameContextBindingListener, atg.naming.NameContextElement, atg.naming.NameResolver, atg.nucleus.AdminableService, atg.nucleus.logging.ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, atg.nucleus.naming.ComponentNameResolver, atg.nucleus.Service, atg.nucleus.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
 
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.
 void initializeCloneEditState(CloneEditState pCloneEditState)
          Copies the original pricingModels from the order's priceInfo and taxPriceInfo to the clone order's priceInfo and taxPriceInfo.
protected  void updateItem(CloneEditState pCloneEditState, UpdateItem pUpdateItem)
          Extends updateItem to capture detect in the amountinfo object
 void validateCloneOrder(atg.commerce.order.Order pOriginalOrder, atg.commerce.order.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

Constructor Detail

OrderPropertyEditHandler

public OrderPropertyEditHandler()
Method Detail

initializeCloneEditState

public void initializeCloneEditState(CloneEditState pCloneEditState)
                              throws atg.commerce.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:
atg.commerce.CommerceException
See Also:
CloneEditHandler.copyPricingModels(Object, Object, String)

applyChanges

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

Specified by:
applyChanges in class CloneEditHandler
Throws:
atg.commerce.CommerceException

updateItem

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

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

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(atg.commerce.order.Order pOriginalOrder,
                               atg.commerce.order.Order pCloneOrder)
                        throws atg.commerce.CommerceException
Noop impl to satisfy the abstract interface

Specified by:
validateCloneOrder in class CloneEditHandler
Throws:
atg.commerce.CommerceException