public class DarkFeatureControl extends BackdoorControl<DarkFeatureControl>
BackdoorControl.AddXsrfNoCheckTokenFilter, BackdoorControl.JsonMediaTypeFilter
Modifier and Type | Field and Description |
---|---|
static String |
DARK_FEATURES_RESOURCE_BASE_URL |
ADMIN_REST_PATH, API_REST_PATH, DEFAULT_REST_PATH, rootPath
Constructor and Description |
---|
DarkFeatureControl(BambooEnvironmentData environmentData) |
Modifier and Type | Method and Description |
---|---|
void |
disable(String featureKey)
Disables a dark feature.
|
void |
enable(String featureKey)
Enables a dark feature.
|
List<String> |
getAll()
Gets all the enabled dark features.
|
protected String |
getRestModulePath()
Returns the REST path used in this plugin's
atlassian-plugin.xml (e.g. |
boolean |
getStatus(String featureKey)
Gets the status of a dark feature, enabled or disabled.
|
client, createResource, createResourceForPath, get, getEnvironmentData, percentEncode, ping, post, resourceRoot, tearDown
public static final String DARK_FEATURES_RESOURCE_BASE_URL
public DarkFeatureControl(@NotNull BambooEnvironmentData environmentData)
public boolean getStatus(@NotNull String featureKey) throws Exception
featureKey
- key of the dark featureException
protected String getRestModulePath()
BackdoorControl
atlassian-plugin.xml
(e.g. <rest path="...">
).
The default value is ""backdoor"".getRestModulePath
in class BackdoorControl<DarkFeatureControl>
atlassian-plugin.xml
(e.g. <rest path="...">
).public List<String> getAll() throws Exception
Exception
public void enable(@NotNull String featureKey) throws Exception
featureKey
- key of the dark featureException
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.