public class

JiraUserSessionTracker

extends Object
java.lang.Object
   ↳ com.atlassian.jira.web.session.currentusers.JiraUserSessionTracker

Class Overview

The JiraUserSessionTracker keeps track of the "users" that have a "session" with JIRA.

Summary

Fields
public static final Comparator<JiraUserSession> BY_LAST_ACCESS_TIME A Comparator that sorts by last access time ascending
Public Constructors
JiraUserSessionTracker()
Public Methods
static JiraUserSessionTracker getInstance()
Hooks into the ComponentManager to get a singelton instance of JiraUserSessionTracker
List<JiraUserSession> getSnapshot()
This returns a "snapshot" list of sessions that are currently in JIRA, sorted by last access time descending
static void recordInteraction(HttpServletRequest httpServletRequest)
This method (in partnership with AccessLogFilter) decides what type of request has occurred and record the appropriate information
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final Comparator<JiraUserSession> BY_LAST_ACCESS_TIME

A Comparator that sorts by last access time ascending

Public Constructors

public JiraUserSessionTracker ()

Public Methods

public static JiraUserSessionTracker getInstance ()

Hooks into the ComponentManager to get a singelton instance of JiraUserSessionTracker

Returns
  • an singleton instance of JiraUserSessionTracker

public List<JiraUserSession> getSnapshot ()

This returns a "snapshot" list of sessions that are currently in JIRA, sorted by last access time descending

Returns
  • a "snapshot" list of sessions that are currently in JIRA, sorted by last access time descending

public static void recordInteraction (HttpServletRequest httpServletRequest)

This method (in partnership with AccessLogFilter) decides what type of request has occurred and record the appropriate information

Parameters
httpServletRequest the http request in play