|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.config.DefaultFeatureManager
public class DefaultFeatureManager
Default implementation of FeatureManager.
| Nested Class Summary | |
|---|---|
static class |
DefaultFeatureManager.FeaturesMapHolder
|
| Field Summary | |
|---|---|
static String |
FEATURE_RESOURCE_TYPE
|
static com.atlassian.plugin.Resources.TypeFilter |
FEATURE_TYPE_FILTER
|
| Constructor Summary | |
|---|---|
DefaultFeatureManager(com.atlassian.plugin.PluginAccessor pluginAccessor,
com.atlassian.event.api.EventPublisher eventPublisher,
PermissionManager permissionManager,
ApplicationProperties applicationProperties,
JiraAuthenticationContext authenticationContext,
UserPreferencesManager userPreferencesManager)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FEATURE_RESOURCE_TYPE
public static final com.atlassian.plugin.Resources.TypeFilter FEATURE_TYPE_FILTER
| Constructor Detail |
|---|
public DefaultFeatureManager(com.atlassian.plugin.PluginAccessor pluginAccessor,
com.atlassian.event.api.EventPublisher eventPublisher,
PermissionManager permissionManager,
ApplicationProperties applicationProperties,
JiraAuthenticationContext authenticationContext,
UserPreferencesManager userPreferencesManager)
| Method Detail |
|---|
public boolean isEnabled(String featureKey)
FeatureManager
isEnabled in interface FeatureManagerfeatureKey - feature key
true, if feature identified by featureKey is enabled, false otherwisepublic boolean isEnabled(CoreFeatures coreFeature)
FeatureManager
isEnabled in interface FeatureManagercoreFeature - core feature instance
true, if given core feature is enabled, false otherwisepublic Set<String> getEnabledFeatureKeys()
FeatureManager
getEnabledFeatureKeys in interface FeatureManagerpublic DarkFeatures getDarkFeatures()
FeatureManagerDarkFeatures instances from the PropertySet associated with the ThreadLocal user.
getDarkFeatures in interface FeatureManager
public void enableUserDarkFeature(com.atlassian.crowd.embedded.api.User user,
String feature)
FeatureManager
enableUserDarkFeature in interface FeatureManageruser - the user to enable the feature forfeature - the feature to enable
public void disableUserDarkFeature(com.atlassian.crowd.embedded.api.User user,
String feature)
disableUserDarkFeature in interface FeatureManagerpublic void enableSiteDarkFeature(String feature)
enableSiteDarkFeature in interface FeatureManagerpublic void disableSiteDarkFeature(String feature)
disableSiteDarkFeature in interface FeatureManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||