com.mtgi.analytics
Interface SessionContext

All Known Implementing Classes:
JAASSessionContext, SpringSessionContext

public interface SessionContext

Provides contextual information for behavior tracking purposes about a user (or other principal) acting on an application. Usually principal name and session ID can be determined using standard java.security and servlet APIs; this interface provides a layer of abstraction so that custom application authentication schemes can be integrated into the behavior tracking library.

See Also:
BehaviorTrackingManager

Method Summary
 String getContextSessionId()
          If the calling thread is currently working on an authenticated session, return the session ID.
 String getContextUserId()
          get the user ID currently associated with the calling thread, if any
 

Method Detail

getContextUserId

String getContextUserId()
get the user ID currently associated with the calling thread, if any


getContextSessionId

String getContextSessionId()
If the calling thread is currently working on an authenticated session, return the session ID. Otherwise return null.