Package com.logicaldoc.gui.common.client
Class CookiesManager
java.lang.Object
com.logicaldoc.gui.common.client.CookiesManager
Here we handle the storage of informations in the broeserk
- Since:
- 7.7.2
- Author:
- Marco Meschieri - LogicalDOC
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Gets a cookiestatic String[]
Retrieves the credentialsstatic String
Retrieves the device ID saved in the browserstatic boolean
static void
Removes all the informations stored in the browserstatic void
Removes the cookies used to handle the loginstatic void
Removes the cookies that store the session IDstatic void
static void
Saves the cookiestatic void
saveDevice
(String deviceId) static void
Saves the login informationsstatic void
saveRelease
(GUIInfo info) Stores the release information in the browser
-
Field Details
-
COOKIE_HITSLIST_MODE
- See Also:
-
COOKIE_HITSLIST_PREV_W
- See Also:
-
COOKIE_DOCSLIST_MODE
- See Also:
-
COOKIE_DOCSLIST_PREV_W
- See Also:
-
COOKIE_DOCSMENU_W
- See Also:
-
COOKIE_SAVELOGIN
- See Also:
-
COOKIE_DENSITY
- See Also:
-
COOKIE_USER
- See Also:
-
COOKIE_PASSWORD
- See Also:
-
COOKIE_VERSION
- See Also:
-
COOKIE_SID
- See Also:
-
COOKIE_DEVICE
- See Also:
-
COOKIE_JSESSIONID
- See Also:
-
-
Method Details
-
removeSid
public static void removeSid()Removes the cookies that store the session ID -
removeLogin
public static void removeLogin()Removes the cookies used to handle the login -
removeAllCookies
public static void removeAllCookies()Removes all the informations stored in the browser -
getSavedDevice
Retrieves the device ID saved in the browser- Returns:
- the saved device ID
-
get
Gets a cookie- Parameters:
cookieName
- name of the cookie- Returns:
- value of the cookie
-
save
Saves the cookie- Parameters:
cookieName
- name of the cookievalue
- value of the cookie
-
save
-
saveRelease
Stores the release information in the browser- Parameters:
info
- the User Interface informations
-
saveDevice
-
isSaveLogin
public static boolean isSaveLogin() -
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 enabledrememberMe
- if the 'remember me' option must be enabledusername
- the usernamepassword
- the password
-