Package org.adempiere.webui.session
Class SessionManager
- java.lang.Object
-
- org.adempiere.webui.session.SessionManager
-
public class SessionManager extends Object
- Version:
- $Revision: 0.10 $
- Author:
- Ashley G Ramdass
-
-
Field Summary
Fields Modifier and Type Field Description static String
SESSION_APPLICATION
-
Constructor Summary
Constructors Constructor Description SessionManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
changeRole(MUser user)
static IDesktop
getAppDesktop()
static IWebClient
getSessionApplication()
static boolean
isUserLoggedIn(Properties ctx)
static void
logoutSession()
static void
logoutSessionAfterBrowserDestroyed()
Perform logout after user close a browser tab without first logging out.static void
setSessionApplication(IWebClient app)
-
-
-
Field Detail
-
SESSION_APPLICATION
public static final String SESSION_APPLICATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
isUserLoggedIn
public static boolean isUserLoggedIn(Properties ctx)
-
setSessionApplication
public static void setSessionApplication(IWebClient app)
-
getAppDesktop
public static IDesktop getAppDesktop()
-
getSessionApplication
public static IWebClient getSessionApplication()
-
logoutSession
public static void logoutSession()
-
logoutSessionAfterBrowserDestroyed
public static void logoutSessionAfterBrowserDestroyed()
Perform logout after user close a browser tab without first logging out. Usually this is invoke fromSessionContextListener
and developer shouldn't call this directly.
-
changeRole
public static void changeRole(MUser user)
- Parameters:
user
-
-
-