atg.commerce.pricing
Class PromotionClosenessMessage

java.lang.Object
  extended by atg.commerce.messaging.CommerceMessageImpl
      extended by atg.commerce.pricing.PromotionClosenessMessage
All Implemented Interfaces:
CommerceMessage, java.io.Serializable

public class PromotionClosenessMessage
extends CommerceMessageImpl

This class is the base for two types of JMS messages: - A PromotionClosenessQualificationEvent indicates that an order has met a closenessQualification of a given promotion. - A PromotionClosenessDisqualificationEvent inidicates that an order that previously met a closenessQualification of a given promotion now fails to do so.

Properties:

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
PromotionClosenessMessage()
           
 
Method Summary
 RepositoryItem getClosenessQualifier()
           
 Order getOrder()
           
 RepositoryItem getProfile()
           
 java.lang.String getType()
          return the TYPE of the message
 void setClosenessQualifier(RepositoryItem pClosenessQualifier)
          Sets the closeness condition that the order qualifies under (or fails to qualify under).
 void setOrder(Order pOrder)
          Sets the order that is close to qualifying for the promotion (or that is no longer close to qualifying).
 void setProfile(RepositoryItem pProfile)
          Sets the profile of the owner of the order
 void setType(java.lang.String pType)
          Sets the JMS type of this message
 java.lang.String toString()
           
 
Methods inherited from class atg.commerce.messaging.CommerceMessageImpl
appendBaseToString, getId, getOriginalId, getOriginalSource, getOriginalUserId, getParentSessionId, getSessionId, getSiteId, getSource, getUserId, setId, setOriginalId, setOriginalSource, setOriginalUserId, setParentSessionId, setSessionId, setSiteId, setSource, setUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

PromotionClosenessMessage

public PromotionClosenessMessage()
Method Detail

setClosenessQualifier

public void setClosenessQualifier(RepositoryItem pClosenessQualifier)
Sets the closeness condition that the order qualifies under (or fails to qualify under).

Parameters:
pClosenessQualifier - the closeness condition that the order qualifies under (or fails to qualify under).

getClosenessQualifier

public RepositoryItem getClosenessQualifier()
Returns:
the closeness condition that the order qualifies under (or fails to qualify under).

setOrder

public void setOrder(Order pOrder)
Sets the order that is close to qualifying for the promotion (or that is no longer close to qualifying).

Parameters:
pOrder - the order that is close to qualifying for the promotion (or that is no longer close to qualifying).

getOrder

public Order getOrder()
Returns:
the order that is close to qualifying for the promotino (or that is no longer close to qualifying).

setProfile

public void setProfile(RepositoryItem pProfile)
Sets the profile of the owner of the order

Parameters:
pProfile - the profile of the owner of the order

getProfile

public RepositoryItem getProfile()
Returns:
the profile of the owner of the order

setType

public void setType(java.lang.String pType)
Sets the JMS type of this message

Parameters:
pType - the JMS type of this message

getType

public java.lang.String getType()
Description copied from class: CommerceMessageImpl
return the TYPE of the message

Specified by:
getType in interface CommerceMessage
Overrides:
getType in class CommerceMessageImpl
Returns:
the JMS type of this message.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object