Package com.logicaldoc.gui.common.client
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 Summary
Fields Modifier and Type Field Description static String
COOKIE_DENSITY
static String
COOKIE_DEVICE
static String
COOKIE_DOCSLIST_MODE
static String
COOKIE_DOCSLIST_PREV_W
static String
COOKIE_DOCSMENU_W
static String
COOKIE_HITSLIST_MODE
static String
COOKIE_HITSLIST_PREV_W
static String
COOKIE_JSESSIONID
static String
COOKIE_PASSWORD
static String
COOKIE_SAVELOGIN
static String
COOKIE_SID
static String
COOKIE_USER
static String
COOKIE_VERSION
-
Constructor Summary
Constructors Constructor Description CookiesManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
get(String cookieName)
Gets a cookiestatic String[]
getSavedCredentials()
Retrieves the credentialsstatic String
getSavedDevice()
Retrieves the device ID saved in the browserstatic boolean
isSaveLogin()
static void
removeAllCookies()
Removes all the informations stored in the browserstatic void
removeLogin()
Removes the cookies used to handle the loginstatic void
removeSid()
Removes the cookies that store the session IDstatic void
save(String cookieName, int value)
static void
save(String cookieName, String value)
Saves the cookiestatic void
saveDevice(String deviceId)
static void
saveLogin(boolean saveLoginEnabled, boolean rememberMe, String username, String password)
Saves the login informationsstatic void
saveRelease(GUIInfo info)
Stores the release information in the browser
-
-
-
Field Detail
-
COOKIE_HITSLIST_MODE
public static final String COOKIE_HITSLIST_MODE
- See Also:
- Constant Field Values
-
COOKIE_HITSLIST_PREV_W
public static final String COOKIE_HITSLIST_PREV_W
- See Also:
- Constant Field Values
-
COOKIE_DOCSLIST_MODE
public static final String COOKIE_DOCSLIST_MODE
- See Also:
- Constant Field Values
-
COOKIE_DOCSLIST_PREV_W
public static final String COOKIE_DOCSLIST_PREV_W
- See Also:
- Constant Field Values
-
COOKIE_DOCSMENU_W
public static final String COOKIE_DOCSMENU_W
- See Also:
- Constant Field Values
-
COOKIE_SAVELOGIN
public static final String COOKIE_SAVELOGIN
- See Also:
- Constant Field Values
-
COOKIE_DENSITY
public static final String COOKIE_DENSITY
- See Also:
- Constant Field Values
-
COOKIE_USER
public static final String COOKIE_USER
- See Also:
- Constant Field Values
-
COOKIE_PASSWORD
public static final String COOKIE_PASSWORD
- See Also:
- Constant Field Values
-
COOKIE_VERSION
public static final String COOKIE_VERSION
- See Also:
- Constant Field Values
-
COOKIE_SID
public static final String COOKIE_SID
- See Also:
- Constant Field Values
-
COOKIE_DEVICE
public static final String COOKIE_DEVICE
- See Also:
- Constant Field Values
-
COOKIE_JSESSIONID
public static final String COOKIE_JSESSIONID
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
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 cookievalue
- 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 enabledrememberMe
- if the 'remember me' option must be enabledusername
- the usernamepassword
- the password
-
-