| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.commerce.messaging.CommerceMessageImpl
atg.commerce.gifts.GiftPurchased
public class GiftPurchased
This message will be sent to the Dynamo Scenario Server when a gift is purchased off someone's giftlist. This can be used to trigger an event such as sending an email notification to the customer. The message will contain the order, the profile of the customer the gift is for and the commerce item itself.
| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSIONClass version string | 
| static java.lang.String | TYPEThis is the JMS message type for the message that this class represents. | 
| Constructor Summary | |
|---|---|
| GiftPurchased() | |
| Method Summary | |
|---|---|
|  CommerceItem | getItem()return the gift. | 
|  Order | getOrder()return the order in which the gift was purchased. | 
|  RepositoryItem | getProfile()return the profile of the recipient | 
|  java.lang.String | getProfileId()Returns profileId from the Profileproperty. | 
|  java.lang.String | getType()return the JMS message TYPE of the message | 
|  void | setItem(CommerceItem pItem)This property is the CommerceItem of the Gift | 
|  void | setOrder(Order pOrder)Sets the property of the order. | 
|  void | setProfile(RepositoryItem pProfile)Sets the profile of the recipient | 
|  java.lang.String | toString()This method returns a readable string representing the contents of this message. | 
| 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 | 
|---|
public static java.lang.String CLASS_VERSION
public static final java.lang.String TYPE
| Constructor Detail | 
|---|
public GiftPurchased()
| Method Detail | 
|---|
public java.lang.String getType()
getType in interface CommerceMessagegetType in class CommerceMessageImplpublic Order getOrder()
public void setOrder(Order pOrder)
pOrder - the order in which the gift was purchased.Orderpublic RepositoryItem getProfile()
public void setProfile(RepositoryItem pProfile)
pProfile - the profile of the recipient of the gift.Profilepublic java.lang.String getProfileId()
Profile property. if
 Profile property is null then null is returned.
public CommerceItem getItem()
public void setItem(CommerceItem pItem)
pItem - the commerceItem which represents the giftCommerceItempublic java.lang.String toString()
toString in class java.lang.Object| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||