Class CookiesManager

java.lang.Object
com.logicaldoc.gui.common.client.CookiesManager

public class CookiesManager extends Object
Here we handle the storage of informations in the broeserk
Since:
7.7.2
Author:
Marco Meschieri - LogicalDOC
  • Field Details

  • Method Details

    • removeSid

      public static void removeSid()
      Removes the cookies that store the session ID
    • removeAllCookies

      public static void removeAllCookies()
      Removes all the informations stored in the browser
    • getSavedDevice

      public static String getSavedDevice()
      Retrieves the device ID saved in the browser
      Returns:
      the saved device ID
    • get

      public static String get(String cookieName)
      Gets a cookie
      Parameters:
      cookieName - name of the cookie
      Returns:
      value of the cookie
    • save

      public static void save(String cookieName, String value)
      Saves the cookie
      Parameters:
      cookieName - name of the cookie
      value - value of the cookie
    • save

      public static void save(String cookieName, int value)
    • saveRelease

      public static void saveRelease(GUIInfo info)
      Stores the release information in the browser
      Parameters:
      info - the User Interface informations
    • saveDevice

      public static void saveDevice(String deviceId)
    • isSaveLogin

      public static boolean isSaveLogin()
    • getSavedCredentials

      public static String[] getSavedCredentials()
      Retrieves the credentials
      Returns:
      username and password
    • saveLogin

      public static void saveLogin(boolean saveLoginEnabled, boolean rememberMe, String username, String password)
      Saves the login informations
      Parameters:
      saveLoginEnabled - if the 'save login' checkbox must be enabled
      rememberMe - if the 'remember me' option must be enabled
      username - the username
      password - the password