atg.commerce.csr.order.edit
Class CSRCommerceItemEditHandler

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.CollectionEditHandler
                  extended by atg.commerce.order.edit.ListEditHandler
                      extended by atg.commerce.order.edit.CommerceItemEditHandler
                          extended by atg.commerce.csr.order.edit.CSRCommerceItemEditHandler
All Implemented Interfaces:
AgentEventHandler, 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 CSRCommerceItemEditHandler
extends CommerceItemEditHandler
implements AgentEventHandler

The CSR extension that sends AgentEvents for the updates made by this handler.


Field Summary
static java.lang.String CLASS_VERSION
           
protected  CSRAgentTools mCSRAgentTools
           
 
Fields inherited from class atg.commerce.order.edit.CommerceItemEditHandler
mCommerceItemManager
 
Fields inherited from class atg.commerce.order.edit.CollectionEditHandler
mCollectionPropertyName, mSortPropertyName, mSubPropertyHandlers, mThrowExceptionsForCollectionChanges, STATE_CLONETOORIGINAL_MAP, STATE_ORIGINALTOCLONE_MAP
 
Fields inherited from class atg.commerce.order.edit.CloneEditHandler
mFulfillmentMessageSender, mKeyPropertyName, mOrderFulfillmentTools, mPropertiesToCopyOnUpdate, 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
CSRCommerceItemEditHandler()
           
 
Method Summary
 CSRAgentTools getCSRAgentTools()
           
 void sendAddItemAgentEvents(java.util.Collection pAddItems, CloneEditState pCloneEditState, atg.repository.RepositoryItem pCustomerProfile, java.lang.String pTicketId)
          Sends agent events for newly added commerce items
 void sendAgentEvents(CloneEditState pCloneEditState, atg.repository.RepositoryItem pCustomerProfile, java.lang.String pTicketId)
          Sends the AgentEvents for the updates made.
 void sendDeleteItemAgentEvents(java.util.Collection pDeleteItems, CloneEditState pCloneEditState, atg.repository.RepositoryItem pCustomerProfile, java.lang.String pTicketId)
          Sends agent events for deleted commerce items
 void sendUpdateItemAgentEvents(java.util.Collection pUpdateItems, CloneEditState pCloneEditState, atg.repository.RepositoryItem pCustomerProfile, java.lang.String pTicketId)
          Sends agent events for updated commerce items
 void setCSRAgentTools(CSRAgentTools pCSRAgentTools)
          Sets the property CSRAgentTools.
 
Methods inherited from class atg.commerce.order.edit.CommerceItemEditHandler
addItem, copyPriceListValue, createItemAddedModification, createItemQuantityUpdateModification, createItemRemovedModification, deleteItem, detectChanges, detectCommerceItemChanges, generateModifications, getCommerceItemManager, initializeCloneEditState, mapCloneToOriginalContainers, mapOriginalToClone, mapOriginalToCloneContainers, preserveOriginalCommerceItemValues, preserveOriginalValues, preserveValueForItems, setCommerceItemManager, updateItem, validateCollection, validateCommerceItemCollection
 
Methods inherited from class atg.commerce.order.edit.CollectionEditHandler
applyChanges, detectChangesToCollection, detectDeletes, executeSubPropertyHandlerInitialization, executeSubPropertyHandlerUpdates, executeSubPropertyHandlerValidation, findCounterpartObject, getCloneToOriginalMap, getCollection, getCollectionPropertyName, getMatchingCloneKey, getMatchingOriginalKey, getOriginalToCloneMap, getSortedCollection, getSortPropertyName, getSubPropertyHandlers, handleMissingOriginalObject, isSubPropertyHandlers, isThrowExceptionsForCollectionChanges, mapOriginalToCloneCollection, saveOriginalToCloneObjectMappings, setCollectionPropertyName, setSortPropertyName, setSubPropertyHandlers, setThrowExceptionsForCollectionChanges, sortCollection, validateCloneOrder, validateCollection, validateCollectionSize
 
Methods inherited from class atg.commerce.order.edit.CloneEditHandler
addAddItem, addDeleteItem, addStateData, addUpdateItem, adjustCloneCommerceIdReferences, adjustOriginalCommerceIdReferences, cloneOrder, copyPricingModels, createAddItem, createDeleteItem, createUpdateItem, 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 final java.lang.String CLASS_VERSION
See Also:
Constant Field Values

mCSRAgentTools

protected CSRAgentTools mCSRAgentTools
Constructor Detail

CSRCommerceItemEditHandler

public CSRCommerceItemEditHandler()
Method Detail

setCSRAgentTools

public void setCSRAgentTools(CSRAgentTools pCSRAgentTools)
Sets the property CSRAgentTools.


getCSRAgentTools

public CSRAgentTools getCSRAgentTools()
Returns:
The value of the property ProfileTools.

sendUpdateItemAgentEvents

public void sendUpdateItemAgentEvents(java.util.Collection pUpdateItems,
                                      CloneEditState pCloneEditState,
                                      atg.repository.RepositoryItem pCustomerProfile,
                                      java.lang.String pTicketId)
Sends agent events for updated commerce items

Parameters:
pUpdateItems -
pCloneEditState -
pCustomerProfile -
pTicketId -

sendAddItemAgentEvents

public void sendAddItemAgentEvents(java.util.Collection pAddItems,
                                   CloneEditState pCloneEditState,
                                   atg.repository.RepositoryItem pCustomerProfile,
                                   java.lang.String pTicketId)
Sends agent events for newly added commerce items

Parameters:
pAddItems -
pCloneEditState -
pCustomerProfile -
pTicketId -

sendDeleteItemAgentEvents

public void sendDeleteItemAgentEvents(java.util.Collection pDeleteItems,
                                      CloneEditState pCloneEditState,
                                      atg.repository.RepositoryItem pCustomerProfile,
                                      java.lang.String pTicketId)
Sends agent events for deleted commerce items

Parameters:
pDeleteItems -
pCloneEditState -
pCustomerProfile -
pTicketId -

sendAgentEvents

public void sendAgentEvents(CloneEditState pCloneEditState,
                            atg.repository.RepositoryItem pCustomerProfile,
                            java.lang.String pTicketId)
Sends the AgentEvents for the updates made.

Specified by:
sendAgentEvents in interface AgentEventHandler
See Also:
CSRCloneEditManager.sendAgentEvents(CloneEditState, RepositoryItem, String)