java.lang.Object | |
↳ | com.atlassian.jira.config.DefaultFeatureManager |
Default implementation of FeatureManager
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DefaultFeatureManager.FeaturesMapHolder |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | FEATURE_RESOURCE_TYPE |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.jira.config.FeatureManager
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FEATURE_TYPE_FILTER |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Disables a site-wide feature.
| |||||||||||
Disables a feature for a particular user.
| |||||||||||
Disables a feature for a particular user.
| |||||||||||
Enables a site-wide feature.
| |||||||||||
Enables a feature for a particular User.
| |||||||||||
Enables a feature for a particular User.
| |||||||||||
Creates
DarkFeatures instances from the PropertySet associated
with the current user. | |||||||||||
Returns a set containing the feature keys of all features that are currently enabled.
| |||||||||||
Returns true if the currently logged in user has permission to edit site dark features.
| |||||||||||
Checks whether feature
featureKey is enabled either in the running JIRA instance
or for the current user. | |||||||||||
Checks whether or not the specified feature is enabled.
| |||||||||||
Checks whether
feature is enabled either in the running JIRA instance
or for the current user. | |||||||||||
Checks whether a feature with given featureKey is enabled in the running JIRA instance for the given user.
| |||||||||||
Convenience method equivalent to calling
isEnabled(CoreFeatures.ON_DEMAND) . | |||||||||||
This method wil be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.InitializingComponent
| |||||||||||
From interface
com.atlassian.jira.config.FeatureManager
| |||||||||||
From interface
com.atlassian.jira.extension.Startable
|
Disables a site-wide feature.
Since JIRA 5.1, this method raises a FeatureDisabledEvent
if it is successful.
feature | the feature to disable |
---|
Disables a feature for a particular user.
Since JIRA 5.1, this method raises aFeatureDisabledEvent
if it is successful.user | the user to disable the feature for |
---|---|
feature | the feature to disable |
Disables a feature for a particular user.
Since JIRA 5.1, this method raises aFeatureDisabledEvent
if it is successful.user | the user to disable the feature for |
---|---|
feature | the feature to disable |
Enables a site-wide feature.
Since JIRA 5.1, this method raises aFeatureEnabledEvent
if it is successful.feature | the feature to enable |
---|
Enables a feature for a particular User. Raises a FeatureEnabledEvent
.
FeatureEnabledEvent
if it is successful.user | the user to enable the feature for |
---|---|
feature | the feature to enable |
Enables a feature for a particular User. Raises a FeatureEnabledEvent
.
FeatureEnabledEvent
if it is successful.user | the user to enable the feature for |
---|---|
feature | the feature to enable |
Creates DarkFeatures
instances from the PropertySet associated
with the current user.
Returns a set containing the feature keys of all features that are currently enabled.
Returns true if the currently logged in user has permission to edit site dark features.
Checks whether feature featureKey
is enabled either in the running JIRA instance
or for the current user.
featureKey | feature key |
---|
true
, if feature identified by featureKey is enabled, false
otherwise
Checks whether or not the specified feature is enabled. This method
should be prefered over isEnabled(String)
for internal feature checks,
particularly for core features that are not user-settable, as it will skip
loading the current user's preferences when possible.
feature | the feature to check |
---|
true
if feature
is enabled; false
otherwiseChecks whether feature
is enabled either in the running JIRA instance
or for the current user. This method should be prefered over
isEnabled(String)
for internal feature checks, particularly for
core features that are not user-settable, as it will skip loading the
current user's preferences when possible.
feature | the core feature to check |
---|
true
if feature
is enabled; false
otherwise
Checks whether a feature with given featureKey is enabled in the running JIRA instance for the given user.
user | the user being queried |
---|---|
featureKey | feature key |
true
, if feature identified by featureKey is enabled, false
otherwise
Convenience method equivalent to calling
isEnabled(CoreFeatures.ON_DEMAND)
.
true
if this is JIRA OnDemand; false
otherwiseThis method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.
Exception |
---|