public class DefaultUserAccess extends java.lang.Object implements IUserAccess
IUserAccess.associateUserWithCurrentSession(String).
associateUserWithCurrentThread(String).
IUserAccess.USER_UNDEFINED is returned as
current user.USER_UNDEFINED| Constructor and Description |
|---|
DefaultUserAccess() |
| Modifier and Type | Method and Description |
|---|---|
static void |
associateUserWithCurrentSession(HttpServletRequest request,
java.lang.String userName)
Pass the current user into the current session.
|
static void |
associateUserWithCurrentSession(java.lang.String userName)
Pass the current user into the current session.
|
static void |
associateUserWithCurrentThread(java.lang.String user) |
static void |
clearUserWithCurrentSession() |
static void |
clearUserWithCurrentThread() |
java.lang.String |
getCurrentUser()
Get user that is associated with the current context.
|
java.lang.String |
getCurrentUser(FacesContext context) |
public java.lang.String getCurrentUser()
IUserAccessgetCurrentUser in interface IUserAccesspublic java.lang.String getCurrentUser(FacesContext context)
getCurrentUser in interface IUserAccesspublic static void associateUserWithCurrentSession(java.lang.String userName)
associateUserWithCurrentSession(HttpServletRequest, String) in this case.public static void associateUserWithCurrentSession(HttpServletRequest request,
java.lang.String userName)
public static void clearUserWithCurrentSession()
public static void associateUserWithCurrentThread(java.lang.String user)
public static void clearUserWithCurrentThread()
Copyright © CaptainCasa Gmbh. All Rights Reserved.