Class SessionManager

java.lang.Object
org.adempiere.webui.session.SessionManager

public class SessionManager extends Object
Zk session related static methods
Version:
$Revision: 0.10 $
Author:
Ashley G Ramdass
  • Field Details

  • Constructor Details

    • SessionManager

      public SessionManager()
  • Method Details

    • isUserLoggedIn

      public static boolean isUserLoggedIn(Properties ctx)
      Parameters:
      ctx -
      Returns:
      true if user has logged in
    • setSessionApplication

      public static void setSessionApplication(IWebClient app)
      Parameters:
      app -
    • getAppDesktop

      public static IDesktop getAppDesktop()
      Returns:
      IDesktop instance
      See Also:
    • getSessionApplication

      public static IWebClient 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 from SessionContextListener and developer shouldn't call this directly.
    • changeRole

      public static void changeRole(MUser user)
      Parameters:
      user -