public class DisqualifyRemovedItemClosenessQualifiers extends java.lang.Object implements MessageSink
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
DisqualifyRemovedItemClosenessQualifiers() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final java.lang.String CLASS_VERSION
protected static java.util.ResourceBundle sResourceBundle
protected MessageSender mMessageSender
protected java.lang.String mJMSType
public DisqualifyRemovedItemClosenessQualifiers()
public MessageSender getMessageSender()
public void setMessageSender(MessageSender pMessageSender)
pMessageSender - the component that will send the PromotionClosenessDisqualification messages.public java.lang.String getJMSType()
public void setJMSType(java.lang.String pJMSType)
pJMSType - the JMS type of PromotionClosenessDisqualification messages.public void receiveMessage(java.lang.String pPortName,
javax.jms.Message pMessage)
throws javax.jms.JMSException
receiveMessage in interface MessageSinkpPortName - the name of the port the message was received on.pMessage - the message receivedjavax.jms.JMSExceptionpublic void firePromotionClosenessMessage(java.lang.String pJMSType,
Order pOrder,
RepositoryItem pProfile,
RepositoryItem pClosenessQualifier)
throws javax.jms.JMSException
pJMSType - The JMS type of the messagepOrder - The order that the closenessQualifier is associated withpProfile - The owner of the orderpPromotion - The promotion that was close to being qualified forpClosenessQualifier - The closenessQualifier to be disqualifiedjavax.jms.JMSException