Package overit.geocall.ui
Class WindowManagerUtils
java.lang.Object
overit.geocall.ui.WindowManagerUtils
Utility class that defines some utility method related to the
WindowManager class.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WindowManagerUtilsgetRandomWmId(Map<String, WindowManager> wms) Generates a new random internal window manager's id.booleanisValidRandomWmId(String wmId) Defines if a window manager passed as parameter is an allowed randomic internal wm or not.org.springframework.http.HttpStatusremoveExternalWms(String webView, boolean allWebViews, overit.geocall.servlet.WebSession ws)
-
Constructor Details
-
WindowManagerUtils
public WindowManagerUtils()
-
-
Method Details
-
getInstance
-
getRandomWmId
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
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:
trueif a window manager passed as parameter is an allowed internal randomic wm,falseotherwise.
-
removeExternalWms
public org.springframework.http.HttpStatus removeExternalWms(String webView, boolean allWebViews, overit.geocall.servlet.WebSession ws)
-