com.atlassian.jira.config
Interface FeatureManager

All Known Implementing Classes:
BootstrapFeatureManager, DefaultFeatureManager

public interface FeatureManager

Component responsible for providing information whether certain features in JIRA are enabled or disabled.

Since:
v4.4

Method Summary
 void disableSiteDarkFeature(String feature)
           
 void disableUserDarkFeature(com.atlassian.crowd.embedded.api.User user, String feature)
           
 void enableSiteDarkFeature(String feature)
           
 void enableUserDarkFeature(com.atlassian.crowd.embedded.api.User user, String feature)
          Enable a dark feature for a particular User.
 DarkFeatures getDarkFeatures()
          Creates DarkFeatures instances from the PropertySet associated with the ThreadLocal user.
 Set<String> getEnabledFeatureKeys()
          Returns a set containing the feature keys of all features that are currently enabled.
 boolean isEnabled(CoreFeatures coreFeature)
          Checks whether a feature with given coreFeature is enabled in the running JIRA instance.
 boolean isEnabled(String featureKey)
          Checks whether a feature with given featureKey is enabled in the running JIRA instance.
 

Method Detail

isEnabled

boolean isEnabled(String featureKey)
Checks whether a feature with given featureKey is enabled in the running JIRA instance.

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

isEnabled

boolean isEnabled(CoreFeatures coreFeature)
Checks whether a feature with given coreFeature is enabled in the running JIRA instance.

Parameters:
coreFeature - core feature instance
Returns:
true, if given core feature is enabled, false otherwise

getEnabledFeatureKeys

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
Since:
v5.0

getDarkFeatures

DarkFeatures getDarkFeatures()
Creates DarkFeatures instances from the PropertySet associated with the ThreadLocal user.

Returns:
Returns the Dark Features state for the current user.

enableUserDarkFeature

void enableUserDarkFeature(com.atlassian.crowd.embedded.api.User user,
                           String feature)
Enable a dark feature for a particular User.

Parameters:
user - the user to enable the feature for
feature - the feature to enable

disableUserDarkFeature

void disableUserDarkFeature(com.atlassian.crowd.embedded.api.User user,
                            String feature)

enableSiteDarkFeature

void enableSiteDarkFeature(String feature)

disableSiteDarkFeature

void disableSiteDarkFeature(String feature)


Copyright © 2002-2012 Atlassian. All Rights Reserved.