Class DarkFeatureControl


  • public class DarkFeatureControl
    extends BackdoorControl<DarkFeatureControl>
    Provides a way to control dark features using the Bamboo backdoor, for testing purposes.
    • Constructor Detail

      • DarkFeatureControl

        public DarkFeatureControl​(@NotNull
                                  @NotNull BambooEnvironmentData environmentData)
    • Method Detail

      • getStatus

        public boolean getStatus​(@NotNull
                                 @NotNull String featureKey)
                          throws Exception
        Gets the status of a dark feature, enabled or disabled.
        Parameters:
        featureKey - key of the dark feature
        Throws:
        Exception
      • getRestModulePath

        protected String getRestModulePath()
        Description copied from class: BackdoorControl
        Returns the REST path used in this plugin's atlassian-plugin.xml (e.g. &lt;rest path="..."&gt;). The default value is ""backdoor"".
        Overrides:
        getRestModulePath in class BackdoorControl<DarkFeatureControl>
        Returns:
        the REST path used in this plugin's atlassian-plugin.xml (e.g. &lt;rest path="..."&gt;).
      • enable

        public void enable​(@NotNull
                           @NotNull String featureKey)
                    throws Exception
        Enables a dark feature.
        Parameters:
        featureKey - key of the dark feature
        Throws:
        Exception
      • disable

        public void disable​(@NotNull
                            @NotNull String featureKey)
                     throws Exception
        Disables a dark feature.
        Parameters:
        featureKey - key of the dark feature
        Throws:
        Exception