atg.userprofiling
Class SessionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by atg.service.event.GenericEvent
          extended by atg.userprofiling.SessionEvent
All Implemented Interfaces:
RepositoryUpdateEvent, java.io.Serializable

public class SessionEvent
extends GenericEvent
implements RepositoryUpdateEvent

A simple session event. It contains items that might be useful for logging or monitoring session events.

See Also:
Serialized Form

Field Summary
static int[] ALL_TYPES
          An array of all of the event type constants for this event.
static java.lang.String CLASS_VERSION
          Class version string
protected  DynamoHttpServletRequest mRequest
          The current request.
static java.lang.String SESSION_PREFIX
          Prefix for event topic heirarchy.
static int TYPE_EXPIRE_SESSION
          Expire event type, i.e.
static int TYPE_LOGIN
          Login event type.
static int TYPE_LOGOUT
          Logout event type.
static int TYPE_NEW_SESSION
          New event type, i.e.
static int TYPE_REGISTER
          Register event type.
 
Fields inherited from class atg.service.event.GenericEvent
mDate, mTime, mTimestamp, mType, TYPE_VANILLA
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SessionEvent(java.lang.Object pSource)
          Constructs a session event.
SessionEvent(java.lang.Object pSource, int pEventType)
          Constructs a session event of the given type.
 
Method Summary
static java.lang.String buildEventChannel()
          Builds an event channel for this event.
 RepositoryItem getProfile()
           
 DynamoHttpServletRequest getRequest()
           
 javax.servlet.http.HttpSession getSession()
           
 RepositoryItem getUpdatedItem()
          The item whose updates should be commited after all the updates have been added to the item.
 void setProfile(RepositoryItem pValue)
           
 void setRequest(DynamoHttpServletRequest pValue)
           
 void setSession(javax.servlet.http.HttpSession pValue)
           
 void setUpdatedItem(RepositoryItem pValue)
          The item whose updates should be commited after all the updates have been added to the item.
 
Methods inherited from class atg.service.event.GenericEvent
getAllTypes, getSource, getTime, getTimeAsDate, getTimeAsTimestamp, getType
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


TYPE_NEW_SESSION

public static final int TYPE_NEW_SESSION
New event type, i.e. session creation.

See Also:
Constant Field Values

TYPE_EXPIRE_SESSION

public static final int TYPE_EXPIRE_SESSION
Expire event type, i.e. session destroyed.

See Also:
Constant Field Values

TYPE_LOGIN

public static final int TYPE_LOGIN
Login event type.

See Also:
Constant Field Values

TYPE_LOGOUT

public static final int TYPE_LOGOUT
Logout event type.

See Also:
Constant Field Values

TYPE_REGISTER

public static final int TYPE_REGISTER
Register event type.

See Also:
Constant Field Values

ALL_TYPES

public static int[] ALL_TYPES
An array of all of the event type constants for this event.


SESSION_PREFIX

public static final java.lang.String SESSION_PREFIX
Prefix for event topic heirarchy.

See Also:
Constant Field Values

mRequest

protected DynamoHttpServletRequest mRequest
The current request.

Constructor Detail

SessionEvent

public SessionEvent(java.lang.Object pSource)
Constructs a session event.


SessionEvent

public SessionEvent(java.lang.Object pSource,
                    int pEventType)
Constructs a session event of the given type.

Method Detail

setRequest

public void setRequest(DynamoHttpServletRequest pValue)

getRequest

public DynamoHttpServletRequest getRequest()

setSession

public void setSession(javax.servlet.http.HttpSession pValue)

getSession

public javax.servlet.http.HttpSession getSession()

setProfile

public void setProfile(RepositoryItem pValue)

getProfile

public RepositoryItem getProfile()

setUpdatedItem

public void setUpdatedItem(RepositoryItem pValue)
Description copied from interface: RepositoryUpdateEvent
The item whose updates should be commited after all the updates have been added to the item.

Specified by:
setUpdatedItem in interface RepositoryUpdateEvent

getUpdatedItem

public RepositoryItem getUpdatedItem()
Description copied from interface: RepositoryUpdateEvent
The item whose updates should be commited after all the updates have been added to the item.

Specified by:
getUpdatedItem in interface RepositoryUpdateEvent

buildEventChannel

public static java.lang.String buildEventChannel()
Builds an event channel for this event.