Package org.adempiere.webui.session
Class SessionManager
java.lang.Object
org.adempiere.webui.session.SessionManager
Zk session related static methods
- Author:
- Ashley G Ramdass
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
changeRole
(MUser user) Execute change role for userstatic IDesktop
Get IDesktop instancestatic IWebClient
Get IWebClient instancestatic boolean
isUserLoggedIn
(Properties ctx) Is ctx with user login detailsstatic 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
StoreIWebClient
instance as desktop attribute
-
Field Details
-
SESSION_APPLICATION
- See Also:
-
-
Constructor Details
-
SessionManager
public SessionManager()
-
-
Method Details
-
isUserLoggedIn
Is ctx with user login details- Parameters:
ctx
-- Returns:
- true if user has logged in
-
setSessionApplication
StoreIWebClient
instance as desktop attribute- Parameters:
app
-
-
getAppDesktop
Get IDesktop instance- Returns:
- IDesktop instance
- See Also:
-
getSessionApplication
Get IWebClient instance- 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
Execute change role for user- Parameters:
user
-
-