Class DarkFeatureRpc


  • public class DarkFeatureRpc
    extends Object
    Interacts with the Dark Feature manager via REST.
    • Method Detail

      • enableUserFeatures

        public void enableUserFeatures​(String... featureKeys)
        Enables dark features for the logged in user.
        Parameters:
        featureKeys - - the keys of the features to enable
      • enableUserFeature

        @Deprecated
        public void enableUserFeature​(String featureKey)
        Deprecated.
        Enables a given dark feature for the logged in user.
        Parameters:
        featureKey - - the key of the feature to enable
      • disableUserFeature

        public void disableUserFeature​(String featureKey)
        Disables a given dark feature for the logged in user.
        Parameters:
        featureKey - - the key of the feature to disable
      • isUserFeatureEnabled

        public boolean isUserFeatureEnabled​(String featureKey)
        Checks if a given dark feature is enabled for the logged in user.
        Parameters:
        featureKey - - the key of the feature to check
      • enableSiteFeatures

        public void enableSiteFeatures​(String... featureKeys)
        Enables dark features for the entire site.
        Parameters:
        featureKeys - - the keys of the features to enable
      • enableSiteFeature

        @Deprecated
        public void enableSiteFeature​(String featureKey)
        Deprecated.
        Enables a given dark feature for the entire site.
        Parameters:
        featureKey - - the key of the feature to enable
      • disableSiteFeature

        public void disableSiteFeature​(String featureKey)
        Disables a given dark feature for the entire site.
        Parameters:
        featureKey - - the key of the feature to disable
      • isSiteFeatureEnabled

        public boolean isSiteFeatureEnabled​(String featureKey)
        Checks if a given dark feature is enabled for the entire site.
        Parameters:
        featureKey - - the key of the feature to check