|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.commerce.messaging.SourceSinkTemplate atg.commerce.fulfillment.OrderChangeHandler
public class OrderChangeHandler
This component will be one of the destination of the ModifyOrderNotification message. Upon receipt of this message, this component will assess if the modification is worthy of generating an event for data collection or scenarios.
ModifyOrderNotification
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
static java.lang.String |
DEFAULT_PAYMENT_GROUP_CREDIT_STATUS_PROPERTY
|
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 | |
---|---|
OrderChangeHandler()
|
Method Summary | |
---|---|
protected void |
checkForSplitShippingGroup(Order pOrder,
GenericAdd pAddModification,
Modification[] pModifications)
Checks if the GenericAdd was the result of a split shipping group. |
ClientLockManager |
getClientLockManager()
The ClientLockManager is used to obtain locks on orders being modified as a results of a message. |
CommerceItemStates |
getCommerceItemStates()
The object containing all the states of an item |
java.lang.String |
getDefaultProfileType()
The default profile repository view that is used in retrieving profiles. |
java.io.Serializable |
getKeyForMessage(javax.jms.ObjectMessage pMessage)
This method will return the key to be used for locking out other messages with the same key while a thread is handling this message. |
OrderFulfillmentTools |
getOrderFulfillmentTools()
|
OrderManager |
getOrderManager()
The OrderManager used by this fulfillment class to access order information. |
OrderStates |
getOrderStates()
The object containing all the states of an order |
java.lang.String |
getPaymentGroupCreditStatusPropertyName()
The name of the property in PaymentGroups for CreditStatus |
PaymentGroupStates |
getPaymentGroupStates()
The object containing all the states of an payment group |
Repository |
getProfileRepository()
The profile repository used to retrieve profile information. |
java.lang.String |
getScenarioEventPort()
The port to which all scenario events will be sent. |
ShipItemRelationshipStates |
getShipItemRelationshipStates()
The object containing all the states of an shipping group |
ShippingGroupStates |
getShippingGroupStates()
The object containing all the states of an shipping group |
protected void |
handleFulfillOrderFragment(java.lang.String pPortName,
javax.jms.ObjectMessage pMessage)
|
protected void |
handleItemModification(java.lang.String pOrderId,
Modification pModification)
|
protected void |
handleModifyOrder(java.lang.String pPortName,
javax.jms.ObjectMessage pMessage)
|
protected void |
handleModifyOrderNotification(java.lang.String pPortName,
javax.jms.ObjectMessage pMessage)
|
protected void |
handleNewMessageType(java.lang.String pPortName,
javax.jms.ObjectMessage pMessage)
|
protected void |
handleOrderModification(java.lang.String pOrderId,
Modification pModification)
|
protected void |
handlePaymentGroupModification(java.lang.String pOrderId,
Modification pModification,
java.util.List pCreditList,
java.util.List pDebitList,
java.util.List pDebitFailedList)
|
protected void |
handleRelationshipModification(java.lang.String pOrderId,
Modification pModification,
java.util.Collection pUnavailable)
|
protected void |
handleShipItemRelModification(java.lang.String pOrderId,
Modification pModification,
java.util.Collection pUnavailable)
|
protected void |
handleShippingGroupModification(java.lang.String pOrderId,
Modification pModification,
Modification[] pModifications)
|
protected void |
handleSubmitOrder(java.lang.String pPortName,
javax.jms.ObjectMessage pMessage)
|
protected void |
handleUpdateInventory(java.lang.String pPortName,
javax.jms.ObjectMessage pMessage)
|
boolean |
isSendEventsWithNoProfile()
It is possible for some orders to have a null profile (if the user was anonymous). |
void |
receiveMessage(java.lang.String pPortName,
javax.jms.Message pMessage)
This is called to notify the component that a Message has arrived through the given input port. |
void |
sendScenarioEvent(ScenarioEvent pMessage)
This method sets the id of the event and sends it to the scenario engine. |
void |
setClientLockManager(ClientLockManager pClientLockManager)
|
void |
setCommerceItemStates(CommerceItemStates pCommerceItemStates)
|
void |
setDefaultProfileType(java.lang.String pDefaultProfileType)
|
void |
setOrderFulfillmentTools(OrderFulfillmentTools pOrderFulfillmentTools)
|
void |
setOrderManager(OrderManager pOrderManager)
|
void |
setOrderStates(OrderStates pOrderStates)
|
void |
setPaymentGroupCreditStatusPropertyName(java.lang.String pPaymentGroupCreditStatusPropertyName)
|
void |
setPaymentGroupStates(PaymentGroupStates pPaymentGroupStates)
|
void |
setProfileRepository(Repository pProfileRepository)
|
void |
setScenarioEventPort(java.lang.String pScenarioEventPort)
|
void |
setSendEventsWithNoProfile(boolean pSendEventsWithNoProfile)
|
void |
setShipItemRelationshipStates(ShipItemRelationshipStates pShipItemRelationshipStates)
|
void |
setShippingGroupStates(ShippingGroupStates pShippingGroupStates)
|
Methods inherited from class atg.commerce.messaging.SourceSinkTemplate |
---|
getDelayOnSendRetry, getMessageSourceContext, getMessageSourceName, getTransactionManager, isAllowMessageSending, sendCommerceMessage, sendObjectMessage, setAllowMessageSending, setDelayOnSendRetry, setMessageSourceContext, setMessageSourceName, setTransactionManager, startMessageSource, stopMessageSource |
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
public static java.lang.String DEFAULT_PAYMENT_GROUP_CREDIT_STATUS_PROPERTY
Constructor Detail |
---|
public OrderChangeHandler()
Method Detail |
---|
public void setOrderManager(OrderManager pOrderManager)
public void setOrderFulfillmentTools(OrderFulfillmentTools pOrderFulfillmentTools)
public OrderFulfillmentTools getOrderFulfillmentTools()
public void setScenarioEventPort(java.lang.String pScenarioEventPort)
public java.lang.String getScenarioEventPort()
public OrderManager getOrderManager()
OrderManager
public void setClientLockManager(ClientLockManager pClientLockManager)
public ClientLockManager getClientLockManager()
public void setProfileRepository(Repository pProfileRepository)
public Repository getProfileRepository()
public void setDefaultProfileType(java.lang.String pDefaultProfileType)
public java.lang.String getDefaultProfileType()
public void setOrderStates(OrderStates pOrderStates)
public OrderStates getOrderStates()
public void setCommerceItemStates(CommerceItemStates pCommerceItemStates)
public CommerceItemStates getCommerceItemStates()
public void setShippingGroupStates(ShippingGroupStates pShippingGroupStates)
public ShippingGroupStates getShippingGroupStates()
public void setPaymentGroupStates(PaymentGroupStates pPaymentGroupStates)
public PaymentGroupStates getPaymentGroupStates()
public void setShipItemRelationshipStates(ShipItemRelationshipStates pShipItemRelationshipStates)
public ShipItemRelationshipStates getShipItemRelationshipStates()
public void setSendEventsWithNoProfile(boolean pSendEventsWithNoProfile)
public boolean isSendEventsWithNoProfile()
public void setPaymentGroupCreditStatusPropertyName(java.lang.String pPaymentGroupCreditStatusPropertyName)
public java.lang.String getPaymentGroupCreditStatusPropertyName()
public void receiveMessage(java.lang.String pPortName, javax.jms.Message pMessage) throws javax.jms.JMSException
This is called to notify the component that a Message has arrived through the given input port. The MessageSink should be prepared to handle concurrent calls of this method from multiple Threads.
receiveMessage can be extended to handle extra types of messages by overriding the handleNewMessageType method.
receiveMessage
in interface MessageSink
receiveMessage
in class SourceSinkTemplate
javax.jms.JMSException
protected void handleSubmitOrder(java.lang.String pPortName, javax.jms.ObjectMessage pMessage)
pPortName
- the port from which this message arrivedpMessage
- the message that was just receivedprotected void handleFulfillOrderFragment(java.lang.String pPortName, javax.jms.ObjectMessage pMessage)
pPortName
- the port from which this message arrivedpMessage
- the message that was just receivedprotected void handleModifyOrder(java.lang.String pPortName, javax.jms.ObjectMessage pMessage)
pPortName
- the port from which this message arrivedpMessage
- the message that was just receivedprotected void handleModifyOrderNotification(java.lang.String pPortName, javax.jms.ObjectMessage pMessage) throws javax.jms.JMSException
pPortName
- the port from which this message arrivedpMessage
- the message that was just received
javax.jms.JMSException
protected void handleUpdateInventory(java.lang.String pPortName, javax.jms.ObjectMessage pMessage)
pPortName
- the port from which this message arrivedpMessage
- the message that was just receivedprotected void handleNewMessageType(java.lang.String pPortName, javax.jms.ObjectMessage pMessage)
pPortName
- the port from which this message arrivedpMessage
- the message that was just receivedpublic java.io.Serializable getKeyForMessage(javax.jms.ObjectMessage pMessage) throws javax.jms.JMSException
pMessage
- the ObjectMessage containing the CommerceMessage.
javax.jms.JMSException
protected void handleOrderModification(java.lang.String pOrderId, Modification pModification)
pOrderId
- the id of the order that this message refers topModification
- the modification within the message we are handlingprotected void handleShippingGroupModification(java.lang.String pOrderId, Modification pModification, Modification[] pModifications)
pOrderId
- the id of the order that this message refers topModification
- the modification within the message we are handlingpModifications
- the entire array of modifications. Necessary for checking for a splitprotected void handlePaymentGroupModification(java.lang.String pOrderId, Modification pModification, java.util.List pCreditList, java.util.List pDebitList, java.util.List pDebitFailedList)
pOrderId
- the id of the order that this message refers topModification
- the modification within the message we are handlingpCreditList
- pDebitList
- pDebitFailedList
- protected void handleItemModification(java.lang.String pOrderId, Modification pModification)
pOrderId
- the id of the order that this message refers topModification
- the modification within the message we are handlingprotected void handleRelationshipModification(java.lang.String pOrderId, Modification pModification, java.util.Collection pUnavailable)
pOrderId
- the id of the order that this message refers topModification
- the modification within the message we are handlingpUnavailable
- A place to store any unavailable (backordered, preordered, outofstock, discontinued) itemsprotected void handleShipItemRelModification(java.lang.String pOrderId, Modification pModification, java.util.Collection pUnavailable)
pOrderId
- the id of the order that this message refers topModification
- the modification within the message we are handlingpUnavailable
- A place to store any unavailable (backordered, preordered, outofstock, discontinued) itemspublic void sendScenarioEvent(ScenarioEvent pMessage) throws CommerceException
sendEventsWithNoProfile
is false and the
profile of pMessage
then the event will not be sent.
pMessage
- The ScenarioEvent that just happened.
CommerceException
ScenarioEvent
protected void checkForSplitShippingGroup(Order pOrder, GenericAdd pAddModification, Modification[] pModifications)
pOrder
- The order containing the shipping group.pAddModification
- The GenericAdd of a shipping group to the order.pModifications
- The array of modifications to the order.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |