© 2005 BEA Systems, Inc.

com.bea.p13n.tracking.events
Class TrackingEvent

java.lang.Object
  extended bycom.bea.p13n.property.AbstractConfigurableEntity
      extended bycom.bea.p13n.events.Event
          extended bycom.bea.p13n.tracking.events.TrackingEvent
All Implemented Interfaces:
ConfigurableEntity, EventConstants, Serializable
Direct Known Subclasses:
CampaignUserActivityEvent, ClickEvent, ContentEvent, GenericTrackingEvent, RuleEvent, SessionBeginEvent, SessionEndEvent, SessionLoginEvent, ShoppingEvent, UserRegistrationEvent

public abstract class TrackingEvent
extends Event

The base class for implementing any behavior tracking events. Events that will be persisted to the EVENT table for beahvior tracking must subclass this class.

See Also:
Serialized Form

Field Summary
static String APPLICATION
          Event attribute key name for the WebLogic application context Attribute value is a String
static String REQUEST
          Event attribute key name for the request object Attribute value is a com.bea.p13n.http.Request
static String SESSION_ID
          Event attribute key name for session id Attribute value is a String
static String USER_ID
          Event attribute key name for user id Attribute value is a String
static String USER_TYPE
          Event attribute key name for user type.
 
Fields inherited from class com.bea.p13n.property.AbstractConfigurableEntity
CE_METHOD_CACHE, instanceClass, PREFIX_GET, PREFIX_SET, propertyCache, textFormatter
 
Fields inherited from interface com.bea.p13n.property.ConfigurableEntity
RESERVED_PROPERTY_SET
 
Fields inherited from interface com.bea.p13n.events.EventConstants
TYPE_ALL
 
Constructor Summary
TrackingEvent(String eventType, HttpSession session, String theXMLNamespace, String theXSDFile, String[] theSchemaKeys)
          Create a new TrackingEvent.
TrackingEvent(String theEventType, HttpSession session, String theXMLNamespace, String theXSDFile, String[] theSchemaKeys, HttpServletRequest theRequest)
          Create a new TrackingEvent.
TrackingEvent(String theEventType, String theSessionId, String theUserId, String theXMLNamespace, String theXSDFile, String[] theSchemaKeys)
          Deprecated. Use TrackingEvent(String theEventType, HttpSession session, String theXMLNamespace, String theXSDFile, String[] theSchemaKeys)
TrackingEvent(String theEventType, String theSessionId, String theUserId, String theXMLNamespace, String theXSDFile, String[] theSchemaKeys, HttpServletRequest theRequest)
          Deprecated. Use TrackingEvent(String theEventType, HttpSession session, String theXMLNamespace, String theXSDFile, String[] theSchemaKeys, HttpServletRequest theRequest)
 
Method Summary
 String[] getSchemaKeys()
          Get the schama keys (and their order) for the XML representation of this document
 HttpSession getSession()
           
 String getXMLNamespace()
          Get the XML namespace for this event
 String getXSDFile()
          Get the XSD schema file for this event
 void setSchemaKeys(String[] schemaKeys)
          Get the schema keys for this event's XML representation
 void setSession(HttpSession session)
          HttpSession object
 void setXMLNamespace(String newXMLNamespace)
          Set the XML namespace for this event
 void setXSDFile(String newXSDFile)
          Set the XSD schema file for this event
 
Methods inherited from class com.bea.p13n.events.Event
getApplication, getAttribute, getAttributeNames, getProperty, getTimeStamp, getType, removeAttribute, setApplication, setAttribute, toString
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.bea.p13n.property.ConfigurableEntity
getJndiName, getPkString, getPropertyAsString, getPropertyNoDefault, getUniqueId, removeProperty, setProperty
 

Field Detail

APPLICATION

public static final String APPLICATION
Event attribute key name for the WebLogic application context Attribute value is a String

See Also:
Constant Field Values

REQUEST

public static final String REQUEST
Event attribute key name for the request object Attribute value is a com.bea.p13n.http.Request

See Also:
Constant Field Values

SESSION_ID

public static final String SESSION_ID
Event attribute key name for session id Attribute value is a String

See Also:
Constant Field Values

USER_ID

public static final String USER_ID
Event attribute key name for user id Attribute value is a String

See Also:
Constant Field Values

USER_TYPE

public static final String USER_TYPE
Event attribute key name for user type. Attribute value is a String

See Also:
ProfileType, Constant Field Values
Constructor Detail

TrackingEvent

public TrackingEvent(String eventType,
                     HttpSession session,
                     String theXMLNamespace,
                     String theXSDFile,
                     String[] theSchemaKeys)
Create a new TrackingEvent. We'll get the sessionId, userId, and profileType all from the Session object. This API should be used instead of the deprecated constructors.


TrackingEvent

public TrackingEvent(String theEventType,
                     HttpSession session,
                     String theXMLNamespace,
                     String theXSDFile,
                     String[] theSchemaKeys,
                     HttpServletRequest theRequest)
Create a new TrackingEvent. We'll get the sessionId, userId, and profileType all from the Session object. This API should be used instead of the deprecated constructors.


TrackingEvent

public TrackingEvent(String theEventType,
                     String theSessionId,
                     String theUserId,
                     String theXMLNamespace,
                     String theXSDFile,
                     String[] theSchemaKeys)
Deprecated. Use TrackingEvent(String theEventType, HttpSession session, String theXMLNamespace, String theXSDFile, String[] theSchemaKeys)

Create a new TrackingEvent.


TrackingEvent

public TrackingEvent(String theEventType,
                     String theSessionId,
                     String theUserId,
                     String theXMLNamespace,
                     String theXSDFile,
                     String[] theSchemaKeys,
                     HttpServletRequest theRequest)
Deprecated. Use TrackingEvent(String theEventType, HttpSession session, String theXMLNamespace, String theXSDFile, String[] theSchemaKeys, HttpServletRequest theRequest)

Create a new TrackingEvent.

Method Detail

getSchemaKeys

public String[] getSchemaKeys()
Get the schama keys (and their order) for the XML representation of this document


getSession

public HttpSession getSession()

getXMLNamespace

public String getXMLNamespace()
Get the XML namespace for this event


getXSDFile

public String getXSDFile()
Get the XSD schema file for this event


setSchemaKeys

public void setSchemaKeys(String[] schemaKeys)
Get the schema keys for this event's XML representation


setSession

public void setSession(HttpSession session)
HttpSession object


setXMLNamespace

public void setXMLNamespace(String newXMLNamespace)
Set the XML namespace for this event


setXSDFile

public void setXSDFile(String newXSDFile)
Set the XSD schema file for this event


© 2005 BEA Systems, Inc.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved