com.bea.commerce.ebusiness.tracking.events
Class BuyEvent
java.lang.Object
|
+--com.bea.p13n.property.AbstractConfigurableEntity
|
+--com.bea.p13n.events.Event
|
+--com.bea.p13n.tracking.events.TrackingEvent
|
+--com.bea.commerce.ebusiness.tracking.events.ShoppingEvent
|
+--com.bea.commerce.ebusiness.tracking.events.BuyEvent
- All Implemented Interfaces:
- ConfigurableEntity, EventConstants, Serializable
- public class BuyEvent
- extends ShoppingEvent
Event for tracking purchases
- See Also:
- Serialized Form
Field Summary |
static String |
ORDER_LINE_ID
Order line id key
Attribute value is a Long |
static String |
TYPE
The event type |
static String |
UNIT_PRICE
Event attribute key name for unit price (used by shopping and buy)
Attribute value is a Double |
Constructor Summary |
BuyEvent(HttpSession session,
HttpServletRequest theRequest,
String aSKU,
Double theQuantity,
Double theUnitPrice,
String aCurrency,
String aApplicationName,
Long aOrderLineId)
Create a new BuyEvent. |
BuyEvent(String theSessionId,
String theUserId,
HttpServletRequest theRequest,
String aSKU,
Double theQuantity,
Double theUnitPrice,
String aCurrency,
String aApplicationName,
Long aOrderLineId)
Deprecated. |
Methods inherited from class com.bea.p13n.property.AbstractConfigurableEntity |
createMapKey, getCachedProperty, getExplicitProperty, getExplicitSetter, getImplicitProperty, getJndiName, getPkString, getPropertyAsString, getPropertyCache, getPropertyNoDefault, getUniqueId, hasExplicitGetter, hasExplicitSetter, removeExplicitProperty, removeProperty, setExplicitProperty, setProperty, upcaseFirst |
TYPE
public static final String TYPE
- The event type
- See Also:
- Constant Field Values
ORDER_LINE_ID
public static final String ORDER_LINE_ID
- Order line id key
Attribute value is a Long
- See Also:
- Constant Field Values
UNIT_PRICE
public static final String UNIT_PRICE
- Event attribute key name for unit price (used by shopping and buy)
Attribute value is a Double
- See Also:
- Constant Field Values
BuyEvent
public BuyEvent(HttpSession session,
HttpServletRequest theRequest,
String aSKU,
Double theQuantity,
Double theUnitPrice,
String aCurrency,
String aApplicationName,
Long aOrderLineId)
- Create a new BuyEvent. This ctor must be used to track anonymous users
- Parameters:
session
- the http servlet sessiontheRequest
- the http servlet requestaSKU
- SKU of the item (optionally null)theQuantity
- quantity of itemtheUnitPrice
- price per unit quantity of the itemaCurrency
- the currency (null if unknown)aApplicationName
- application name (aka storefront) (optionally null)aOrderLineId
- order line id for the item
BuyEvent
public BuyEvent(String theSessionId,
String theUserId,
HttpServletRequest theRequest,
String aSKU,
Double theQuantity,
Double theUnitPrice,
String aCurrency,
String aApplicationName,
Long aOrderLineId)
- Deprecated.
- Create a new BuyEvent.
- Parameters:
theSessionId
- from HttpSession.getId()theUserId
- from HttpServletRequest.getRemoteUser() or equivalent (null if unknown)theRequest
- the http servlet requestaSKU
- SKU of the item (optionally null)theQuantity
- quantity of itemtheUnitPrice
- price per unit quantity of the itemaCurrency
- the currency (null if unknown)aApplicationName
- application name (aka storefront) (optionally null)aOrderLineId
- order line id for the item
Copyright © 2003 BEA Systems, Inc. All Rights Reserved