public class CurrentUsers
extends java.lang.Object
| Constructor and Description | 
|---|
CurrentUsers()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
addUser(javax.servlet.http.HttpSession httpSession,
       User user)
Add the user to the current users. 
 | 
static java.util.List<java.lang.String> | 
getCurrentUsernames(javax.servlet.http.HttpSession httpSession)
Get sorted user names list. 
 | 
static java.util.Map<java.lang.String,java.lang.String> | 
init(javax.servlet.ServletContext servletContext)
Initialize the current users list. 
 | 
static void | 
removeUser(javax.servlet.http.HttpSession httpSession)
Remove the current user from the list of current users. 
 | 
public static java.util.Map<java.lang.String,java.lang.String> init(javax.servlet.ServletContext servletContext)
servletContext - public static void addUser(javax.servlet.http.HttpSession httpSession,
                           User user)
httpSession - user - the user that just logged inpublic static void removeUser(javax.servlet.http.HttpSession httpSession)
httpSession - public static java.util.List<java.lang.String> getCurrentUsernames(javax.servlet.http.HttpSession httpSession)
httpSession - Copyright © 2018 OpenMRS Inc.. All Rights Reserved.