Package com.atlassian.jira.config
Interface InstanceFeatureManager
- All Known Implementing Classes:
BootstrapInstanceFeatureManager
,DefaultInstanceFeatureManager
@ParametersAreNonnullByDefault
public interface InstanceFeatureManager
Provides information about features enabled for the 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).- Since:
- v7.1
-
Method Summary
Modifier and TypeMethodDescriptionReturns a set containing the feature keys of all features that are currently enabled.boolean
isInstanceFeatureEnabled
(String featureKey) Checks whether featurefeatureKey
is enabled in the this JIRA instance.default boolean
Deprecated.
-
Method Details
-
isOnDemand
Deprecated.Checks if JIRA is running in OnDemand mode.- Returns:
true
if this is JIRA OnDemand;false
otherwise
-
isInstanceFeatureEnabled
Checks whether featurefeatureKey
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
-
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
-