com.dotmarketing.factories
Class ClickstreamFactory

java.lang.Object
  extended by com.dotmarketing.factories.ClickstreamFactory

public class ClickstreamFactory
extends java.lang.Object

The actual stream of clicks tracked during a user's navigation through a site.

Author:
Patrick Lightbody

Constructor Summary
ClickstreamFactory()
           
 
Method Summary
static Clickstream addRequest(HttpServletRequest request, HttpServletResponse response)
          Adds a new request to the stream of clicks.
static java.lang.Object getClickstream(java.lang.String clickstreamId)
           
static java.util.List<Clickstream> getClickstreamsByCookieId(java.lang.String cookieId)
           
static void save(Clickstream clickstream)
           
static void setClickStreamUser(java.lang.String userId, HttpServletRequest request)
          This method sets the user for the current clickstream on login.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClickstreamFactory

public ClickstreamFactory()
Method Detail

addRequest

public static Clickstream addRequest(HttpServletRequest request,
                                     HttpServletResponse response)
Adds a new request to the stream of clicks. The HttpServletRequest is converted to a ClickstreamRequest object and added to the clickstream.

Parameters:
request - The serlvet request to be added to the clickstream

save

public static void save(Clickstream clickstream)

getClickstream

public static java.lang.Object getClickstream(java.lang.String clickstreamId)

getClickstreamsByCookieId

public static java.util.List<Clickstream> getClickstreamsByCookieId(java.lang.String cookieId)

setClickStreamUser

public static void setClickStreamUser(java.lang.String userId,
                                      HttpServletRequest request)
This method sets the user for the current clickstream on login.

Parameters:
userId - the
request -


Copyright © 2006 Dotmarketing, Inc. All Rights Reserved.