Package com.logicaldoc.gui.common.client
Class CookiesManager
java.lang.Object
com.logicaldoc.gui.common.client.CookiesManager
Here we handle the store of informations in the broeserk
- Since:
- 7.7.2
- Author:
- Marco Meschieri - LogicalDOC
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringGets a cookiestatic String[]Retrieves the credentialsstatic StringRetrieves the device ID saved in the browserstatic booleanstatic voidRemoves all the informations stored in the browserstatic voidRemoves the cookies that store the session IDstatic voidstatic voidSaves the cookiestatic voidsaveDevice(String deviceId) static voidSaves the login informationsstatic voidsaveRelease(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_READINGS_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- 
removeSidpublic static void removeSid()Removes the cookies that store the session ID
- 
removeAllCookiespublic static void removeAllCookies()Removes all the informations stored in the browser
- 
getSavedDeviceRetrieves the device ID saved in the browser- Returns:
- the saved device ID
 
- 
getGets a cookie- Parameters:
- cookieName- name of the cookie
- Returns:
- value of the cookie
 
- 
saveSaves the cookie- Parameters:
- cookieName- name of the cookie
- value- value of the cookie
 
- 
save
- 
saveReleaseStores the release information in the browser- Parameters:
- info- the User Interface informations
 
- 
saveDevice
- 
isSaveLoginpublic static boolean isSaveLogin()
- 
getSavedCredentialsRetrieves the credentials- Returns:
- username and password
 
- 
saveLoginpublic 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
 
 
-