Class WindowManagerUtils

java.lang.Object
overit.geocall.ui.WindowManagerUtils

public class WindowManagerUtils extends Object
Utility class that defines some utility method related to the WindowManager class.
  • Constructor Details

    • WindowManagerUtils

      public WindowManagerUtils()
  • Method Details

    • getInstance

      public static WindowManagerUtils getInstance()
    • getRandomWmId

      public String getRandomWmId(Map<String,WindowManager> wms)
      Generates a new random internal window manager's id.
      Parameters:
      wms - The map with all the wms into the session to avoid collisions on the id
      Returns:
      a new random internal window manager's id.
    • isValidRandomWmId

      public boolean isValidRandomWmId(String wmId)
      Defines if a window manager passed as parameter is an allowed randomic internal wm or not.
      An internal wm is created and used by the application itself, and it's considered internal when its id starts with the prefix 'GCWM_' and ends with a string of 8 random chars.
      Parameters:
      wmId - The WindowManager's id.
      Returns:
      true if a window manager passed as parameter is an allowed internal randomic wm, false otherwise.
    • removeExternalWms

      public org.springframework.http.HttpStatus removeExternalWms(String webView, boolean allWebViews, overit.geocall.servlet.WebSession ws)