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:

CloneEditManager

Classes

atg.commerce.order.edit.CloneEditManager

Subclass

atg.commerce.csr.order.edit.CSRCloneEditManager

Component

/atg/commerce/custsvc/order/edit/CSRCloneEditManager

Configuration

cloneEditHandlers provides 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 initialization process. Keyed by order state.

This class provides some of the core configurations to the feature. It provides the API for executing the pipeline chains and performing call backs to the CloneEditHandlers throughout the entire process.

CloneEditHandler

Classes

atg.commerce.order.edit.CloneEditHandler

Subclass

atg.commerce.csr.order.edit.CollectionEditHandler, CommerceItemEditHandler, PaymentGroupEditHandler, ShippingGroupEditHandler, ManualAdjustmentEditHandler, RelationshipEditHandler, HandlingInstructionEditHandler, AgentCommerceEditHandler, MarkerEditHandler, OrderPropertyEditHandler

Component

/atg/commerce/custsvc/order/edit/OrderPropertyHandler
/atg/commerce/custsvc/order/edit/CommerceItemHandler
/atg/commerce/custsvc/order/edit/ShippingGroupHandler
/atg/commerce/custsvc/order/edit/HandlingInstructionHandler
/atg/commerce/custsvc/order/edit/PaymentGroupHandler
/atg/commerce/custsvc/order/edit/RelationshipHandler
/atg/commerce/custsvc/order/edit/ManualAdjustmentHandler
/atg/commerce/custsvc/order/edit/AgentCommentHandler
/atg/commerce/custsvc/order/edit/MarkerHandler

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 CloneEditManager and are executed at various points in the initialization and reconciliation processes.

CloneEditState

Classes

atg.commerce.order.edit.CloneEditState

This class defines the state object used by the clone edit process. It provides access to the original and clone orders and 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.

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

CSROrderHolder

Classes

atg.commerce.csr.order.CSROrderHolder

Components

/atg/commerce/custsvc/order/ShoppingCart

This class defines the shopping cart used by an agent to modifying customer orders. It provides an API for determining when the application is in clone edit mode, 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.

CSRAgentTools

Classes

atg.commerce.csr.util.CSRAgentTools

Components

/atg/commerce/custsvc/util/CSRAgentTools

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.

CSRCommitOrderFormHandler

Classes

atg.commerce.csr.order.CSRCommitOrderFormHandler

Components

/atg/commerce/custsvc/order/CSRCommitOrderFormHandler

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

 
loading table of contents...