The following describes a few of the core classes and components that implement the clone edit feature and are the likely places for applications to apply overrides and extensions.

Clone Edit Manager

The CloneEditManager class provides the API for executing the pipeline chains and performing call backs to the CloneEditHandlers throughout the entire process. First, the original order is cloned at the repository level and executed, and then the changes in the clone order are reconciled with the original order. Refer to the ATG Platform API Reference for detailed information. These handlers are accessed using the main DCS module.

Classes

atg.commerce.order.edit.CloneEditManager

Component

/atg/commerce/custsvc/returns

Configuration

cloneEditHandlers provide a list of CloneEditHandler components.
intializeEditChains is a map of pipeline chains used in the initialization process. Keyed by order state.
reconcileOrderChains is a map of pipeline chains used in the reconciliation process. Keyed by order state.

Clone Edit Handler

This abstract class is used for creating application classes that participate in the entire process through a callback interface. Components of this type are configured in the core Commerce CloneEditManager class and are executed at various points in the initialization and reconciliation processes. This handler is accessed through the DCS module.

Class

atg.commerce.order.edit.CloneEditHandler

Subclasses

atg.commerce.order.edit.CollectionEditHandler
atg.commerce.order.edit.CommerceItemEditHandler
atg.commerce.order.edit.CommerceItemMarkerEditHandler
atg.commerce.order.edit.PaymentGroupEditHandler
atg.commerce.order.edit.ShippingGroupEditHandler
atg.commerce.order.edit.ManualAdjustmentEditHandler
atg.commerce.order.edit.RelationshipEditHandler
atg.commerce.order.edit.HandlingInstructionEditHandler
atg.commerce.order.edit.MarkerEditHandler
atg.commerce.order.edit.OrderPropertyEditHandler

Components

/atg/commerce/custsvc/order/edit/
CommerceItemHandler
ShippingGroupHandler
PaymentGroupHandler

CSR Clone Edit Handler

This class is used for extends the core Commerce CloneEditHandler class. Components of this type are configured in the CSRCloneEditManager and are executed at various points in the initialization and reconciliation processes. These handlers are accessed through the DCS-CSR module.

Class

atg.commerce.order.edit.CSRCloneEditHandler

Subclasses

atg.commerce.order.edit.CollectionEditHandler
atg.commerce.order.edit.CSRCommerceItemEditHandler
atg.commerce.order.edit.CSRPaymentGroupEditHandler
atg.commerce.order.edit.CSRShippingGroupEditHandler
atg.commerce.order.edit.CSRManualAdjustmentEditHandler
atg.commerce.order.edit.AgentCommentEditHandler

Components

/atg/commerce/custsvc/order/edit/
AgentCommentHandler
CloneEditManager
CommerceItemGWPMakerHandler
CommerceItemHandler
CommerceItemMarkerHandler
GWPOrderMarkerHandler
HandlingInstructionHandler
ManualAdjustmentHandler
MarkerHandler
OrderPropertyHandler
PaymentGroupHandler
RelationshipHandler
ShippingGroupHandler

The CloneEditHandlers components are called during various points in the clone edit process:

Clone Edit State

This class defines the state object used by the clone edit process. It provides access to the original and clone orders, as well as the API for adding and retrieving state information. It is created and returned by the initialization process and is required as input to the reconciliation process.

Classes

atg.commerce.order.edit.CloneEditState

Commerce Service Center stores this object in the window scoped CSROrderHolder, which can be accessed using the getCloneEditState API.

CSR Order Holder

This class defines the shopping cart used by an agent to modify customer orders. It provides an API for determining when the application is in clone edit mode, for storing the clone edit state object and for masking the current working order ID with the original order ID. The loadOrder(Order) API initiates the clone edit process for a given order and stores the clone edit state object.

Classes

atg.commerce.csr.order.CSROrderHolder

Components

/atg/commerce/custsvc/order/ShoppingCart

For more information on this component, refer to the ATG API Reference for Commerce Service Center.

CSR Agent Tools

This class provides the more generic API used by the application. This includes the configuration for submitted order states and the API for determining if an order should used the cloning feature.

Classes

atg.commerce.csr.util.CSRAgentTools

Components

/atg/commerce/custsvc/util/CSRAgentTools

For more information on this component, refer to the ATG API Reference for Commerce Service Center.

CSR Commit Order Form Handler

This form handler class provides the handlers for triggering the reconciliation process.

Classes

atg.commerce.csr.order.CSRCommitOrderFormHandler

Components

/atg/commerce/custsvc/order/CommitOrderFormHandler

For more information on this form handler, refer to the ATG API Reference for Commerce Service Center.


Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices