Class DarkFeatureManagerOsgiAccessor

java.lang.Object
com.atlassian.applinks.host.OsgiServiceProxyFactory
com.atlassian.crowd.feature.DarkFeatureManagerOsgiAccessor
All Implemented Interfaces:
com.atlassian.sal.api.features.DarkFeatureManager, org.springframework.beans.factory.InitializingBean

public class DarkFeatureManagerOsgiAccessor extends com.atlassian.applinks.host.OsgiServiceProxyFactory implements com.atlassian.sal.api.features.DarkFeatureManager, org.springframework.beans.factory.InitializingBean
Allows using the DarkFeatureManager that lives in the Crowd SAL plugin from the Crowd host.
  • Constructor Details

  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • 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

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

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

      public boolean isFeatureEnabledForUser(com.atlassian.sal.api.user.UserKey userKey, String featureKey)
      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 featureKey)
      Specified by:
      enableFeatureForAllUsers in interface com.atlassian.sal.api.features.DarkFeatureManager
    • disableFeatureForAllUsers

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

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

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

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

      public void disableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey, String featureKey)
      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