Class JiraUserSessionTracker

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

public class JiraUserSessionTracker extends Object
The JiraUserSessionTracker keeps track of the "users" that have a "session" with JIRA.
Since:
v4.0
  • Field Details

  • Constructor Details

    • JiraUserSessionTracker

      public JiraUserSessionTracker()
  • Method Details

    • getInstance

      public static JiraUserSessionTracker getInstance()
      Hooks into the ComponentManager to get a singelton instance of JiraUserSessionTracker
      Returns:
      an singleton instance of JiraUserSessionTracker
    • recordInteraction

      public static void recordInteraction(javax.servlet.http.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
    • getSnapshot

      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