@ParametersAreNonnullByDefault public interface

InstanceFeatureManager

com.atlassian.jira.config.InstanceFeatureManager
Known Indirect Subclasses

Class Overview

Provides information about features enabled for current instance. Unlike FeatureManager it does not take into consideration tenant-specific features (site-features) nor features for currently logged user so it can be called safely from tenant-less context (i.e. in constructor, from plugin lifecycle event listeners).

Summary

Public Methods
Set<String> getEnabledFeatureKeys()
Returns a set containing the feature keys of all features that are currently enabled.
boolean isInstanceFeatureEnabled(String featureKey)
Checks whether feature featureKey is enabled in the this JIRA instance.
boolean isOnDemand()
Checks if JIRA is running in OnDemand mode.

Public Methods

public Set<String> getEnabledFeatureKeys ()

Returns a set containing the feature keys of all features that are currently enabled.

Returns
  • a set containing the feature keys of all features that are currently enabled

public boolean isInstanceFeatureEnabled (String featureKey)

Checks whether feature featureKey is enabled in the this JIRA instance. It only checks global instance features that are not tenant specific (features defined in system properties, property files, installed plugins etc.) This method can be called without request context safely (i.e. during plugin initialisation). If the featureKey relates to a feature flag that is defined, then it will also take the default values into consideration.

Parameters
featureKey feature key
Returns
  • true, if feature identified by featureKey is enabled, false otherwise

public boolean isOnDemand ()

Checks if JIRA is running in OnDemand mode.

Returns
  • true if this is JIRA OnDemand; false otherwise