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.
  • Constructor Details

    • BootstrapDarkFeatureManager

      public BootstrapDarkFeatureManager(FeaturesLoader featuresLoader)
  • Method Details

    • isEnabledForAllUsers

      @Nonnull public Optional<Boolean> isEnabledForAllUsers(@Nonnull String featureKey)
      Specified by:
      isEnabledForAllUsers in interface com.atlassian.sal.api.features.DarkFeatureManager
    • isEnabledForCurrentUser

      @Nonnull public Optional<Boolean> isEnabledForCurrentUser(@Nonnull String featureKey)
      Specified by:
      isEnabledForCurrentUser in interface com.atlassian.sal.api.features.DarkFeatureManager
    • isEnabledForUser

      @Nonnull public Optional<Boolean> isEnabledForUser(@Nullable com.atlassian.sal.api.user.UserKey userKey, @Nonnull String featureKey)
      Specified by:
      isEnabledForUser in interface com.atlassian.sal.api.features.DarkFeatureManager
    • isFeatureEnabledForAllUsers

      @Deprecated public boolean isFeatureEnabledForAllUsers(String featureKey)
      Deprecated.
      Specified by:
      isFeatureEnabledForAllUsers in interface com.atlassian.sal.api.features.DarkFeatureManager
    • isFeatureEnabledForCurrentUser

      @Deprecated public boolean isFeatureEnabledForCurrentUser(String featureKey)
      Deprecated.
      Specified by:
      isFeatureEnabledForCurrentUser in interface com.atlassian.sal.api.features.DarkFeatureManager
    • isFeatureEnabledForUser

      @Deprecated public boolean isFeatureEnabledForUser(com.atlassian.sal.api.user.UserKey userKey, String featureKey)
      Deprecated.
      Specified by:
      isFeatureEnabledForUser in interface com.atlassian.sal.api.features.DarkFeatureManager
    • canManageFeaturesForAllUsers

      public boolean canManageFeaturesForAllUsers()
      Specified by:
      canManageFeaturesForAllUsers in interface com.atlassian.sal.api.features.DarkFeatureManager
    • enableFeatureForAllUsers

      public void enableFeatureForAllUsers(String s)
      Specified by:
      enableFeatureForAllUsers in interface com.atlassian.sal.api.features.DarkFeatureManager
    • disableFeatureForAllUsers

      public void disableFeatureForAllUsers(String s)
      Specified by:
      disableFeatureForAllUsers in interface com.atlassian.sal.api.features.DarkFeatureManager
    • enableFeatureForCurrentUser

      public void enableFeatureForCurrentUser(String s)
      Specified by:
      enableFeatureForCurrentUser in interface com.atlassian.sal.api.features.DarkFeatureManager
    • enableFeatureForUser

      public void enableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey, String s)
      Specified by:
      enableFeatureForUser in interface com.atlassian.sal.api.features.DarkFeatureManager
    • disableFeatureForCurrentUser

      public void disableFeatureForCurrentUser(String s)
      Specified by:
      disableFeatureForCurrentUser in interface com.atlassian.sal.api.features.DarkFeatureManager
    • disableFeatureForUser

      public void disableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey, String s)
      Specified by:
      disableFeatureForUser in interface com.atlassian.sal.api.features.DarkFeatureManager
    • getFeaturesEnabledForAllUsers

      public com.atlassian.sal.api.features.EnabledDarkFeatures getFeaturesEnabledForAllUsers()
      Specified by:
      getFeaturesEnabledForAllUsers in interface com.atlassian.sal.api.features.DarkFeatureManager
    • getFeaturesEnabledForCurrentUser

      public com.atlassian.sal.api.features.EnabledDarkFeatures getFeaturesEnabledForCurrentUser()
      Specified by:
      getFeaturesEnabledForCurrentUser in interface com.atlassian.sal.api.features.DarkFeatureManager
    • getFeaturesEnabledForUser

      public com.atlassian.sal.api.features.EnabledDarkFeatures getFeaturesEnabledForUser(com.atlassian.sal.api.user.UserKey userKey)
      Specified by:
      getFeaturesEnabledForUser in interface com.atlassian.sal.api.features.DarkFeatureManager