public class

AbstractAppWebFeatures

extends AbstractWebFeatures
implements EnumAppWebFeatures
java.lang.Object
   ↳ com.microstrategy.web.beans.AbstractWebFeatures
     ↳ com.microstrategy.web.app.beans.AbstractAppWebFeatures
Known Direct Subclasses
Known Indirect Subclasses

Summary

[Expand]
Inherited Constants
From interface com.microstrategy.web.app.beans.EnumAppWebFeatures
From interface com.microstrategy.web.beans.EnumWebFeatures
Fields
protected AppContext _appContext Local instance of AppContext
[Expand]
Inherited Fields
From class com.microstrategy.web.beans.AbstractWebFeatures
Public Constructors
AbstractAppWebFeatures(WebComponent wc)
Default constructor for AbstractAppWebFeatures.
AbstractAppWebFeatures(AppContext appContext)
Constructor for AbstractAppWebFeatures.
Protected Methods
boolean checkBrowserSetting(String key, String value)
Checks whether the specified browser setting and value matches the user's browser setiing
boolean checkPreference(String name, String value)
Checks whether the specified preference and value matches the user's preference
boolean checkPreference(String name, String value, PreferenceLevel level)
Checks whether the specified preference and value matches the user's preference
boolean checkSysPreference(String name, String value)
Checks whether the specified preference and value matches the system's preference
WebSessionInfo getSession()
boolean resolveFeature(String feature)
Determines whether the specified feature is available.
[Expand]
Inherited Methods
From class com.microstrategy.web.beans.AbstractWebFeatures
From class java.lang.Object
From interface com.microstrategy.web.objects.WebFeatures

Fields

protected AppContext _appContext

Local instance of AppContext

Public Constructors

public AbstractAppWebFeatures (WebComponent wc)

Default constructor for AbstractAppWebFeatures.

Parameters
wc WebComponent
Throws
MSTRUncheckedException if an error happened while initializing the instance

public AbstractAppWebFeatures (AppContext appContext)

Constructor for AbstractAppWebFeatures.

Parameters
appContext AppContext
Throws
MSTRUncheckedException if an error happened while initializing the instance

Protected Methods

protected boolean checkBrowserSetting (String key, String value)

Checks whether the specified browser setting and value matches the user's browser setiing

Parameters
key String with the name of the browser setting
value String with the value of the browser setting
Returns
  • A boolean.

protected boolean checkPreference (String name, String value)

Checks whether the specified preference and value matches the user's preference

Parameters
name String with the name of the preference
value String with the value of the preference
Returns
  • A boolean.

protected boolean checkPreference (String name, String value, PreferenceLevel level)

Checks whether the specified preference and value matches the user's preference

Parameters
name String with the name of the preference
value String with the value of the preference
level PreferenceLevel with the level of the preference
Returns
  • A boolean.

protected boolean checkSysPreference (String name, String value)

Checks whether the specified preference and value matches the system's preference

Parameters
name String with the name of the preference
value String with the value of the preference
Returns
  • A boolean.

protected WebSessionInfo getSession ()

Returns
  • WebSessionInfo instance available for this features implementation, from where privileges can be tested from

protected boolean resolveFeature (String feature)

Determines whether the specified feature is available.

Parameters
feature String with the name of the feature to search for
Returns
  • a boolean. The default return value for this method is true