public class DarkFeatureRpc extends Object
Constructor and Description |
---|
DarkFeatureRpc(AuthenticatedWebResourceProvider resourceProvider) |
Modifier and Type | Method and Description |
---|---|
void |
disableSiteFeature(String featureKey)
Disables a given dark feature for the entire site.
|
void |
disableUserFeature(String featureKey)
Disables a given dark feature for the logged in user.
|
void |
enableSiteFeature(String featureKey)
Deprecated.
since 5.6. Use
enableSiteFeatures(String...) |
void |
enableSiteFeatures(String... featureKeys)
Enables dark features for the entire site.
|
void |
enableUserFeature(String featureKey)
Deprecated.
since 5.6. Use
enableUserFeatures(String...) |
void |
enableUserFeatures(String... featureKeys)
Enables dark features for the logged in user.
|
boolean |
isSiteFeatureEnabled(String featureKey)
Checks if a given dark feature is enabled for the entire site.
|
boolean |
isUserFeatureEnabled(String featureKey)
Checks if a given dark feature is enabled for the logged in user.
|
public DarkFeatureRpc(AuthenticatedWebResourceProvider resourceProvider)
public void enableUserFeatures(String... featureKeys)
featureKeys
- - the keys of the features to enable@Deprecated public void enableUserFeature(String featureKey)
enableUserFeatures(String...)
featureKey
- - the key of the feature to enablepublic void disableUserFeature(String featureKey)
featureKey
- - the key of the feature to disablepublic boolean isUserFeatureEnabled(String featureKey)
featureKey
- - the key of the feature to checkpublic void enableSiteFeatures(String... featureKeys)
featureKeys
- - the keys of the features to enable@Deprecated public void enableSiteFeature(String featureKey)
enableSiteFeatures(String...)
featureKey
- - the key of the feature to enablepublic void disableSiteFeature(String featureKey)
featureKey
- - the key of the feature to disablepublic boolean isSiteFeatureEnabled(String featureKey)
featureKey
- - the key of the feature to checkCopyright © 2003–2019 Atlassian. All rights reserved.