atg.commerce.csr.events
Class CommerceItemEvent

java.lang.Object
  extended by atg.agent.events.AgentEvent
      extended by atg.commerce.csr.events.OrderEvent
          extended by atg.commerce.csr.events.CommerceItemEvent
All Implemented Interfaces:
atg.service.datacollection.TypedEvent, java.io.Serializable

public class CommerceItemEvent
extends OrderEvent

The message class to be used to notify listeners when a CSR edits, adds, or removes a CommerceItem

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
           
 
Fields inherited from class atg.agent.events.AgentEvent
AGENT_TOOLS_COMPONENT, mCurrentSiteId
 
Constructor Summary
CommerceItemEvent()
           
 
Method Summary
 java.lang.String getCommerceItemId()
           
 long getNewQuantity()
          The new quantity of the item
 long getOldQuantity()
          The quantity of the item before the change
 void setCommerceItemId(java.lang.String pCommerceItemId)
          Sets the ID of the commerce item
 void setNewQuantity(long pNewQuantity)
           
 void setOldQuantity(long pOldQuantity)
           
 
Methods inherited from class atg.commerce.csr.events.OrderEvent
getAmount, getOrderId, setAmount, setOrderId, toString
 
Methods inherited from class atg.agent.events.AgentEvent
getAgentProfile, getCurrentSiteId, getCustomerProfile, getCustomerProfileId, getEventDate, getIPAddress, getOrganizationId, getParentSessionId, getProfileId, getSessionId, getTicketId, getType, initializeBaseProperties, setCurrentSiteId, setCustomerProfile, setCustomerProfileId, setEventDate, setIPAddress, setOrganizationId, setParentSessionId, setProfileId, setSessionId, setTicketId, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
See Also:
Constant Field Values
Constructor Detail

CommerceItemEvent

public CommerceItemEvent()
Method Detail

setCommerceItemId

public void setCommerceItemId(java.lang.String pCommerceItemId)
Sets the ID of the commerce item

Parameters:
pCommerceItemId - the ID of the commerce item

getCommerceItemId

public java.lang.String getCommerceItemId()
Returns:
the ID of the commerce item

setOldQuantity

public void setOldQuantity(long pOldQuantity)

getOldQuantity

public long getOldQuantity()
The quantity of the item before the change


setNewQuantity

public void setNewQuantity(long pNewQuantity)

getNewQuantity

public long getNewQuantity()
The new quantity of the item