java.lang.Object | |
↳ | com.microstrategy.web.beans.AbstractWebFeatures |
![]() |
![]() |
This acts as the base for all classes implementing feature support
resolution. Any derived classes are expected to implement the resolveFeature
method to indicate whether a specific feature is supported. Each feature is
identified by a String name from EnumWebFeatures
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
protected WebComponent | _wc | A WebComponent object from which to get more information. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AbstractWebFeatures()
Default constructor.
| |||||||||||
AbstractWebFeatures(WebComponent wc)
Constructor with the specified
WebComponent . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
flushCache()
Flushes the internal cache where resolved values of features are stored.
| ||||||||||
boolean |
isFeatureAvailable(String feature, Object dependencyObject)
Checks whether the feature that is passed in is supported
| ||||||||||
boolean |
isFeatureAvailable(String feature)
Checks whether the feature that is passed in is supported
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
checkUserPrivilege(int userPrivilege)
Checks whether the userPrivilege passed in granted for the current session
| ||||||||||
WebSessionInfo | getSession() | ||||||||||
abstract boolean |
resolveFeature(String feature)
Derived classes are expected to implement this method to indicate whether
the feature is supported
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Default constructor.
Constructor with the specified WebComponent
.
wc | a WebComponent object from which to get more
information. |
---|
MSTRUncheckedException | thrown if the specified
WebComponent is null.
|
---|
Flushes the internal cache where resolved values of features are stored.
Checks whether the feature that is passed in is supported
feature | The feature that we are checking for |
---|---|
dependencyObject | not used in this context |
true
if the feature is available.
Checks whether the feature that is passed in is supported
feature | The feature that we are checking for |
---|
true
if the feature is available.
Checks whether the userPrivilege passed in granted for the current session
WebSessionInfo
instance available for this features implementation, from where privileges
can be tested fromDerived classes are expected to implement this method to indicate whether the feature is supported
feature | the feature to check for |
---|