| 
 | |||||||||
| 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.commerce.order.edit.CloneEditHandler
atg.commerce.order.edit.OrderPropertyEditHandler
public class OrderPropertyEditHandler
This handler reconciles scalar properties of the order object.
| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSIONClass 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.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 | 
|---|
public static java.lang.String CLASS_VERSION
protected ShippingGroupEditHandler mShippingGroupEditHandler
| Constructor Detail | 
|---|
public OrderPropertyEditHandler()
| Method Detail | 
|---|
public ShippingGroupEditHandler getShippingGroupEditHandler()
public void setShippingGroupEditHandler(ShippingGroupEditHandler pShippingGroupEditHandler)
public void initializeCloneEditState(CloneEditState pCloneEditState)
                              throws CommerceException
initializeCloneEditState in class CloneEditHandlerCommerceExceptionCloneEditHandler.copyPricingModels(Object, Object, String)
public void applyChanges(CloneEditState pCloneEditState)
                  throws CommerceException
applyChanges in class CloneEditHandlerCommerceException
protected void updateItem(CloneEditState pCloneEditState,
                          UpdateItem pUpdateItem)
                   throws CommerceException
updateItem in class CloneEditHandlerCommerceExceptionCloneEditManager.detectUpdatesInFinalAmountInfo(Object, Object, String)
protected void updateShippingGroupSubtotalMaps(CloneEditState pCloneEditState)
                                        throws CommerceException
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.
pCloneEditState - 
CommerceExceptionpublic java.util.List generateModifications(CloneEditState pCloneEditState)
generateModifications in class CloneEditHandlerpCloneEditState - 
public void validateCloneOrder(Order pOriginalOrder,
                               Order pCloneOrder)
                        throws CommerceException
validateCloneOrder in class CloneEditHandlerCommerceException| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||