atg.commerce.promotion
Class DisqualifyRemovedItemClosenessQualifiers

java.lang.Object
  extended by atg.commerce.promotion.DisqualifyRemovedItemClosenessQualifiers
All Implemented Interfaces:
MessageSink

public class DisqualifyRemovedItemClosenessQualifiers
extends java.lang.Object
implements MessageSink

This action sends PromotionClosenessDisqualification events for all closenessQualifiers in an item that was removed from an order.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
protected  java.lang.String mJMSType
          the JMS type of the PromotionClosenessDisqualification message
protected  MessageSender mMessageSender
          the MessageSender
protected static java.util.ResourceBundle sResourceBundle
          Resource Bundle
 
Constructor Summary
DisqualifyRemovedItemClosenessQualifiers()
           
 
Method Summary
 void firePromotionClosenessMessage(java.lang.String pJMSType, Order pOrder, RepositoryItem pProfile, RepositoryItem pClosenessQualifier)
          Constructs and sends a PromotionClosenessDisqualification
 java.lang.String getJMSType()
           
 MessageSender getMessageSender()
           
 void receiveMessage(java.lang.String pPortName, javax.jms.Message pMessage)
          This method checks to see if the message is an ItemRemovedFromOrder.
 void setJMSType(java.lang.String pJMSType)
          The JMS type of PromotionClosenessDisqualification messages.
 void setMessageSender(MessageSender pMessageSender)
          The component that will send the PromotionClosenessDisqualification messages.
 
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
Class version string

See Also:
Constant Field Values

sResourceBundle

protected static java.util.ResourceBundle sResourceBundle
Resource Bundle


mMessageSender

protected MessageSender mMessageSender
the MessageSender


mJMSType

protected java.lang.String mJMSType
the JMS type of the PromotionClosenessDisqualification message

Constructor Detail

DisqualifyRemovedItemClosenessQualifiers

public DisqualifyRemovedItemClosenessQualifiers()
Method Detail

getMessageSender

public MessageSender getMessageSender()
Returns:
Returns the component that will send the PromotionClosenessDisqualification messages.

setMessageSender

public void setMessageSender(MessageSender pMessageSender)
The component that will send the PromotionClosenessDisqualification messages.

Parameters:
pMessageSender - the component that will send the PromotionClosenessDisqualification messages.

getJMSType

public java.lang.String getJMSType()
Returns:
Returns the JMS type of PromotionClosenessDisqualification messages.

setJMSType

public void setJMSType(java.lang.String pJMSType)
The JMS type of PromotionClosenessDisqualification messages.

Parameters:
pJMSType - the JMS type of PromotionClosenessDisqualification messages.

receiveMessage

public void receiveMessage(java.lang.String pPortName,
                           javax.jms.Message pMessage)
                    throws javax.jms.JMSException
This method checks to see if the message is an ItemRemovedFromOrder. If so, it sends a PromotionClosenessDisqualification message for each of the closenessQualifiers in each ItemPriceInfo.

Specified by:
receiveMessage in interface MessageSink
Parameters:
pPortName - the name of the port the message was received on.
pMessage - the message received
Throws:
javax.jms.JMSException

firePromotionClosenessMessage

public void firePromotionClosenessMessage(java.lang.String pJMSType,
                                          Order pOrder,
                                          RepositoryItem pProfile,
                                          RepositoryItem pClosenessQualifier)
                                   throws javax.jms.JMSException
Constructs and sends a PromotionClosenessDisqualification

Parameters:
pJMSType - The JMS type of the message
pOrder - The order that the closenessQualifier is associated with
pProfile - The owner of the order
pPromotion - The promotion that was close to being qualified for
pClosenessQualifier - The closenessQualifier to be disqualified
Throws:
javax.jms.JMSException