public abstract class

AbstractWebFeatures

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

Class Overview

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

Summary

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
From class java.lang.Object
From interface com.microstrategy.web.objects.WebFeatures

Fields

protected WebComponent _wc

A WebComponent object from which to get more information.

Public Constructors

public AbstractWebFeatures ()

Default constructor.

public AbstractWebFeatures (WebComponent wc)

Constructor with the specified WebComponent.

Parameters
wc a WebComponent object from which to get more information.
Throws
MSTRUncheckedException thrown if the specified WebComponent is null.

Public Methods

public void flushCache ()

Flushes the internal cache where resolved values of features are stored.

public boolean isFeatureAvailable (String feature, Object dependencyObject)

Checks whether the feature that is passed in is supported

Parameters
feature The feature that we are checking for
dependencyObject not used in this context
Returns
  • true if the feature is available.

public boolean isFeatureAvailable (String feature)

Checks whether the feature that is passed in is supported

Parameters
feature The feature that we are checking for
Returns
  • true if the feature is available.

Protected Methods

protected boolean checkUserPrivilege (int userPrivilege)

Checks whether the userPrivilege passed in granted for the current session

Returns
  • whether the userPrivilege passed in granted for the current session

protected WebSessionInfo getSession ()

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

protected abstract boolean resolveFeature (String feature)

Derived classes are expected to implement this method to indicate whether the feature is supported

Parameters
feature the feature to check for
Returns
  • boolean indicating whether the feature is supported