@ParametersAreNonnullByDefault public interface InstanceFeatureManager
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).Modifier and Type | Method and Description |
---|---|
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. |
default boolean |
isOnDemand()
Deprecated.
|
@Deprecated default boolean isOnDemand()
true
if this is JIRA OnDemand; false
otherwiseboolean isInstanceFeatureEnabled(String featureKey)
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.featureKey
- feature keytrue
, if feature identified by featureKey is enabled, false
otherwiseCopyright © 2002-2023 Atlassian. All Rights Reserved.