# com.bea.commerce.ebusiness.tracking.events
ShoppingEvent Class

public abstract class ShoppingEvent
extends `TrackingEvent`

Event for tracking shopping and purchase activity

Hierarchy
  `Object`
  `AbstractConfigurableEntity`
  `Event`
  `TrackingEvent`
  `ShoppingEvent`

All Implemented Interfaces
  `ConfigurableEntity`, `EventConstants`, `Serializable`

Direct Known Subclasses
  `AddToCartEvent`, `BuyEvent`, `PurchaseCartEvent`, `RemoveFromCartEvent`

## Field Summary

`public static final `String`` | `APPLICATION_NAME` Event attribute key name for application name (aka storefront) Attribute value is a String
`public static final `String`` | `CURRENCY` Event attribute key name for currency (used by shopping and buy) Attribute value is a String
`public static final `String`` | `QUANTITY` Event attribute key name for quantity (used by shopping and buy) Attribute value is a Double
`public static final `String`` | `SKU` Event attribute key name for item sku (used by most) Attribute value is a String

Fields from com.bea.p13n.tracking.events`.`TrackingEvent``
``APPLICATION`, `REQUEST`, `SESSION_ID`, `USER_ID`, `USER_TYPE``

Fields from com.bea.p13n.property`.`AbstractConfigurableEntity``
``CE_METHOD_CACHE`, `instanceClass`, `PREFIX_GET`, `PREFIX_SET`, `propertyCache`, `textFormatter``

Fields from interface com.bea.p13n.property`.`ConfigurableEntity``
``RESERVED_PROPERTY_SET``

Fields from interface com.bea.p13n.events`.`EventConstants``
``TYPE_ALL``

## Constructor Summary

ShoppingEvent(`String` theEventType, `String` theSessionId, `String` theUserId, `String` theXMLNamespace, `String` theXSDFile, `String` theSchemaKeys, `HttpServletRequest` theRequest, `String` aSKU, `Double` theQuantity, `String` aCurrency, `String` aApplicationName) Create a new ShoppingEvent.
ShoppingEvent(`String` theEventType, `HttpSession` session, `String` theXMLNamespace, `String` theXSDFile, `String` theSchemaKeys, `HttpServletRequest` theRequest, `String` aSKU, `Double` theQuantity, `String` aCurrency, `String` aApplicationName) Create a new ShoppingEvent.

## Method Summary

Methods from `com.bea.p13n.tracking.events.`TrackingEvent``
``getSchemaKeys`, `getSession`, `getXMLNamespace`, `getXSDFile`, `setSchemaKeys`, `setSession`, `setXMLNamespace`, `setXSDFile``

Methods from `com.bea.p13n.events.`Event``
``getApplication`, `getAttribute`, `getAttributeNames`, `getProperty`, `getTimeStamp`, `getType`, `removeAttribute`, `setApplication`, `setAttribute`, `toString``

Methods from `com.bea.p13n.property.`AbstractConfigurableEntity``
``createMapKey`, `getCachedProperty`, `getExplicitProperty`, `getExplicitSetter`, `getImplicitProperty`, `getJndiName`, `getPkString`, `getProperty`, `getPropertyAsString`, `getPropertyCache`, `getPropertyNoDefault`, `getUniqueId`, `hasExplicitGetter`, `hasExplicitSetter`, `removeExplicitProperty`, `removeProperty`, `setExplicitProperty`, `setProperty`, `upcaseFirst``

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `com.bea.p13n.property.`ConfigurableEntity``
``getJndiName`, `getPkString`, `getProperty`, `getPropertyAsString`, `getPropertyNoDefault`, `getUniqueId`, `removeProperty`, `setProperty``

## Field Detail

### APPLICATION_NAME

    public static final String APPLICATION_NAME

  Event attribute key name for application name (aka storefront) Attribute value is a String

### CURRENCY

    public static final String CURRENCY

  Event attribute key name for currency (used by shopping and buy) Attribute value is a String

### QUANTITY

    public static final String QUANTITY

  Event attribute key name for quantity (used by shopping and buy) Attribute value is a Double

### SKU

    public static final String SKU

  Event attribute key name for item sku (used by most) Attribute value is a String

## Constructor Detail

### ShoppingEvent

    public ShoppingEvent(String theEventType,
                         String theSessionId,
                         String theUserId,
                         String theXMLNamespace,
                         String theXSDFile,
                         String[] theSchemaKeys,
                         HttpServletRequest theRequest,
                         String aSKU,
                         Double theQuantity,
                         String aCurrency,
                         String aApplicationName)

  Create a new ShoppingEvent.

### ShoppingEvent

    public ShoppingEvent(String theEventType,
                         HttpSession session,
                         String theXMLNamespace,
                         String theXSDFile,
                         String[] theSchemaKeys,
                         HttpServletRequest theRequest,
                         String aSKU,
                         Double theQuantity,
                         String aCurrency,
                         String aApplicationName)

  Create a new ShoppingEvent. This ctor must be used to track anonymous users.