Class SessionManager

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

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

  • Constructor Details

    • SessionManager

      public SessionManager()
  • Method Details

    • isUserLoggedIn

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

      public static void setSessionApplication(IWebClient app)
      Store IWebClient instance as desktop attribute
      Parameters:
      app -
    • getAppDesktop

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

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

      public static void changeRole(MUser user)
      Execute change role for user
      Parameters:
      user -