public class CurrentUsers extends 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 List<String> |
getCurrentUsernames(javax.servlet.http.HttpSession httpSession)
Get sorted user names list.
|
static Map<String,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 Map<String,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 - Copyright © 2018 OpenMRS LLC.. All Rights Reserved.