Package com.microstrategy.web.app
Class CookieBrowserSettings
- java.lang.Object
 - 
- com.microstrategy.web.app.GenericBrowserSettings
 - 
- com.microstrategy.web.app.AbstractBrowserSettings
 - 
- com.microstrategy.web.app.CookieBrowserSettings
 
 
 
 
- 
- All Implemented Interfaces:
 BrowserSettings,EnumBrowserType
public class CookieBrowserSettings extends AbstractBrowserSettings
This class provides cookie implementation of BrowserSettings interface. The permanent settings will be stored in permanent cookies. The temporary and project temporary settings will be stored in web session. The implementation relies on ContainerService to provide namespace support.- Since:
 - MicroStrategy Web 8.0.2
 
 
- 
- 
Field Summary
- 
Fields inherited from class com.microstrategy.web.app.AbstractBrowserSettings
_bSet, _bSetHttpSession, _bSetSession 
- 
Fields inherited from class com.microstrategy.web.app.GenericBrowserSettings
_containerServices, _session, GENERIC_HTTP_SESSION_KEY, GENERIC_KEY, GENERIC_PROJECT_KEY_PREFIX 
- 
Fields inherited from interface com.microstrategy.web.objects.EnumBrowserType
BROWSER_TYPE_ANDROID, BROWSER_TYPE_CHROME, BROWSER_TYPE_EDGE, BROWSER_TYPE_FIREFOX, BROWSER_TYPE_FIREFOX_2, BROWSER_TYPE_FIREFOX_3, BROWSER_TYPE_FIREFOX_3_5, BROWSER_TYPE_IE, BROWSER_TYPE_IE_W3C, BROWSER_TYPE_IE10, BROWSER_TYPE_IE11, BROWSER_TYPE_IE6, BROWSER_TYPE_IE7, BROWSER_TYPE_IE8, BROWSER_TYPE_IE9, BROWSER_TYPE_NETSCAPE, BROWSER_TYPE_OTHER, BROWSER_TYPE_SAFARI, BROWSER_TYPE_UNKNOWN 
 - 
 
- 
Constructor Summary
Constructors Constructor Description CookieBrowserSettings(BrowserSettingDefinitionList bsDefinitionList, Preferences preferences, ContainerServices containerServices, boolean storeTemporarySettingInCookie)Class Constructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearHttpSessionValues()Clears temporary browser settingsvoidclearSessionBrowserSettings()Clear the session browser settings for current Intelligence Server session.voidclearSessionValues(WebIServerSession session)Clears session browser settingsjava.lang.StringgetSessionValue(java.lang.String keyName)Returns the value of the key sent as parameter, related with the setting corresponding to the default sessionprotected com.microstrategy.web.app.BrowserSettingElementloadHttpSessionValues()Load temporary browser settingsprotected com.microstrategy.web.app.BrowserSettingElementloadSessionValues()Loads project browser settings.protected com.microstrategy.web.app.BrowserSettingElementloadValues()Loads permanent browser settingsprotected voidstoreHttpSessionValues(com.microstrategy.web.app.BrowserSettingElement bSetHttpSession)Stores temporary settings to Web session.protected voidstoreSessionValues(com.microstrategy.web.app.BrowserSettingElement bSetSession)Store project browser setting windows to web session.protected voidstoreValues(com.microstrategy.web.app.BrowserSettingElement bSet)Stores permanent browser settings in permanent cookies- 
Methods inherited from class com.microstrategy.web.app.AbstractBrowserSettings
canStore, clearSessionValues, flush, getHttpSessionValue, getProjectKey, getSessionValue, getValue, getValue, hasValueSet, setHttpSessionValue, setSession, setSessionValue, setSessionValue, setValue 
- 
Methods inherited from class com.microstrategy.web.app.GenericBrowserSettings
addCacheValue, addCacheValue, getBrowserCompatName, getBrowserName, getBrowserType, getBrowserTypeAndVersion, getBrowserVersion, getCacheNames, getCacheValue, getCacheValue, getDebugOut, getDefaultValue, getDefinitionList, getLocale, getPreferences, getSession, getUserAgent, getValueFromQueryString, isCacheValueModified, isCacheValuePersistable, isCSS2Supported, isDHTMLSupported, isEdgeModeEnabled, isValueCached, isValueSafeForXSS, setCacheValuePersistable, setDefinitionList, setIframeVisibility, setPreferences, updateCacheValue 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
CookieBrowserSettings
public CookieBrowserSettings(BrowserSettingDefinitionList bsDefinitionList, Preferences preferences, ContainerServices containerServices, boolean storeTemporarySettingInCookie)
Class Constructor. This requires a non-null Container Services object for this feature.- Parameters:
 bsDefinitionList- an theBrowserSettingDefinitionListobject from thePageManagerobject containing the default values of the spplication's browser settings.containerServices- an initialized instance ofContainerServicesstoreTemporarySettingInCookie-boolean, indicates whether we store the temporary settings to cookies. The implementation explicitly stores non-namespaced cookie.
 
 - 
 
- 
Method Detail
- 
clearSessionValues
public void clearSessionValues(WebIServerSession session)
Clears session browser settings- Specified by:
 clearSessionValuesin interfaceBrowserSettings- Overrides:
 clearSessionValuesin classAbstractBrowserSettings
 
- 
clearHttpSessionValues
public void clearHttpSessionValues()
Clears temporary browser settings- Specified by:
 clearHttpSessionValuesin interfaceBrowserSettings- Overrides:
 clearHttpSessionValuesin classAbstractBrowserSettings
 
- 
storeSessionValues
protected void storeSessionValues(com.microstrategy.web.app.BrowserSettingElement bSetSession)
Store project browser setting windows to web session.- Overrides:
 storeSessionValuesin classAbstractBrowserSettings
 
- 
storeHttpSessionValues
protected void storeHttpSessionValues(com.microstrategy.web.app.BrowserSettingElement bSetHttpSession)
Stores temporary settings to Web session.- Overrides:
 storeHttpSessionValuesin classAbstractBrowserSettings
 
- 
storeValues
protected void storeValues(com.microstrategy.web.app.BrowserSettingElement bSet)
Stores permanent browser settings in permanent cookies- Specified by:
 storeValuesin classAbstractBrowserSettings
 
- 
loadSessionValues
protected com.microstrategy.web.app.BrowserSettingElement loadSessionValues()
Loads project browser settings.- Overrides:
 loadSessionValuesin classAbstractBrowserSettings
 
- 
getSessionValue
public java.lang.String getSessionValue(java.lang.String keyName)
Returns the value of the key sent as parameter, related with the setting corresponding to the default session- Specified by:
 getSessionValuein interfaceBrowserSettings- Overrides:
 getSessionValuein classAbstractBrowserSettings- Parameters:
 keyName- the name associated with the value to return- Returns:
 - the value found under the specified key
 
 
- 
loadHttpSessionValues
protected com.microstrategy.web.app.BrowserSettingElement loadHttpSessionValues()
Load temporary browser settings- Overrides:
 loadHttpSessionValuesin classAbstractBrowserSettings
 
- 
loadValues
protected com.microstrategy.web.app.BrowserSettingElement loadValues()
Loads permanent browser settings- Specified by:
 loadValuesin classAbstractBrowserSettings
 
- 
clearSessionBrowserSettings
public void clearSessionBrowserSettings()
Description copied from interface:BrowserSettingsClear the session browser settings for current Intelligence Server session. 
 - 
 
 -