Class BootstrapDarkFeatureManager
java.lang.Object
com.atlassian.jira.config.feature.BootstrapDarkFeatureManager
- All Implemented Interfaces:
com.atlassian.sal.api.features.DarkFeatureManager
public class BootstrapDarkFeatureManager
extends Object
implements com.atlassian.sal.api.features.DarkFeatureManager
Dark feature manager used during JIRA bootstrap. Effectively only dark features that are set in
jira-features.properties or in command line are taken into account.
-
Field Summary
Fields inherited from interface com.atlassian.sal.api.features.DarkFeatureManager
ATLASSIAN_DARKFEATURE_PREFIX, DARKFEATURES_PROPERTIES_FILE_PROPERTY, DARKFEATURES_PROPERTIES_FILE_PROPERTY_DEFAULT, DISABLE_ALL_DARKFEATURES_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoidvoiddisableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey, String s) voidvoidvoidenableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey, String s) com.atlassian.sal.api.features.EnabledDarkFeaturescom.atlassian.sal.api.features.EnabledDarkFeaturescom.atlassian.sal.api.features.EnabledDarkFeaturesgetFeaturesEnabledForUser(com.atlassian.sal.api.user.UserKey userKey) isEnabledForAllUsers(String featureKey) isEnabledForCurrentUser(String featureKey) isEnabledForUser(com.atlassian.sal.api.user.UserKey userKey, String featureKey) booleanisFeatureEnabledForAllUsers(String featureKey) Deprecated.booleanisFeatureEnabledForCurrentUser(String featureKey) Deprecated.booleanisFeatureEnabledForUser(com.atlassian.sal.api.user.UserKey userKey, String featureKey) Deprecated.
-
Constructor Details
-
BootstrapDarkFeatureManager
-
-
Method Details
-
isEnabledForAllUsers
- Specified by:
isEnabledForAllUsersin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
isEnabledForCurrentUser
- Specified by:
isEnabledForCurrentUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
isEnabledForUser
@Nonnull public Optional<Boolean> isEnabledForUser(@Nullable com.atlassian.sal.api.user.UserKey userKey, @Nonnull String featureKey) - Specified by:
isEnabledForUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
isFeatureEnabledForAllUsers
Deprecated.- Specified by:
isFeatureEnabledForAllUsersin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
isFeatureEnabledForCurrentUser
Deprecated.- Specified by:
isFeatureEnabledForCurrentUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
isFeatureEnabledForUser
@Deprecated public boolean isFeatureEnabledForUser(com.atlassian.sal.api.user.UserKey userKey, String featureKey) Deprecated.- Specified by:
isFeatureEnabledForUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
canManageFeaturesForAllUsers
public boolean canManageFeaturesForAllUsers()- Specified by:
canManageFeaturesForAllUsersin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
enableFeatureForAllUsers
- Specified by:
enableFeatureForAllUsersin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
disableFeatureForAllUsers
- Specified by:
disableFeatureForAllUsersin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
enableFeatureForCurrentUser
- Specified by:
enableFeatureForCurrentUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
enableFeatureForUser
- Specified by:
enableFeatureForUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
disableFeatureForCurrentUser
- Specified by:
disableFeatureForCurrentUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
disableFeatureForUser
- Specified by:
disableFeatureForUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
getFeaturesEnabledForAllUsers
public com.atlassian.sal.api.features.EnabledDarkFeatures getFeaturesEnabledForAllUsers()- Specified by:
getFeaturesEnabledForAllUsersin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
getFeaturesEnabledForCurrentUser
public com.atlassian.sal.api.features.EnabledDarkFeatures getFeaturesEnabledForCurrentUser()- Specified by:
getFeaturesEnabledForCurrentUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
getFeaturesEnabledForUser
public com.atlassian.sal.api.features.EnabledDarkFeatures getFeaturesEnabledForUser(com.atlassian.sal.api.user.UserKey userKey) - Specified by:
getFeaturesEnabledForUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-