Package org.adempiere.webui.session
Class SessionManager
java.lang.Object
org.adempiere.webui.session.SessionManager
Zk session related static methods
- Version:
- $Revision: 0.10 $
- Author:
- Ashley G Ramdass
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
changeRole
(MUser user) static IDesktop
static IWebClient
static boolean
isUserLoggedIn
(Properties ctx) static void
Logout current sessionstatic void
Perform logout after user close a browser tab without first logging out.
Usually this is invoke fromSessionContextListener
and developer shouldn't call this directly.static void
-
Field Details
-
SESSION_APPLICATION
- See Also:
-
-
Constructor Details
-
SessionManager
public SessionManager()
-
-
Method Details
-
isUserLoggedIn
- Parameters:
ctx
-- Returns:
- true if user has logged in
-
setSessionApplication
- Parameters:
app
-
-
getAppDesktop
- Returns:
- IDesktop instance
- See Also:
-
getSessionApplication
- Returns:
- IWebClient instance
- See Also:
-
logoutSession
public static void logoutSession()Logout current session -
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
- Parameters:
user
-
-