Class JiraUserSessionTracker
java.lang.Object
com.atlassian.jira.web.session.currentusers.JiraUserSessionTracker
The JiraUserSessionTracker keeps track of the "users" that have a "session" with JIRA.
- Since:
- v4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<JiraUserSession>AComparatorthat sorts by last access time ascending -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JiraUserSessionTrackerHooks into the ComponentManager to get a singelton instance of JiraUserSessionTrackerThis returns a "snapshot" list of sessions that are currently in JIRA, sorted by last access time descendingstatic voidrecordInteraction(javax.servlet.http.HttpServletRequest httpServletRequest) This method (in partnership withAccessLogFilter) decides what type of request has occurred and record the appropriate information
-
Field Details
-
BY_LAST_ACCESS_TIME
AComparatorthat sorts by last access time ascending
-
-
Constructor Details
-
JiraUserSessionTracker
public JiraUserSessionTracker()
-
-
Method Details
-
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 withAccessLogFilter) decides what type of request has occurred and record the appropriate information- Parameters:
httpServletRequest- the http request in play
-
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
-