Class DarkFeatureRpc
- java.lang.Object
-
- com.atlassian.confluence.it.rpc.delegates.admin.DarkFeatureRpc
-
public class DarkFeatureRpc extends Object
Interacts with the Dark Feature manager via REST.
-
-
Constructor Summary
Constructors Constructor Description DarkFeatureRpc(AuthenticatedWebResourceProvider resourceProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.void
enableSiteFeatures(String... featureKeys)
Enables dark features for the entire site.void
enableUserFeature(String featureKey)
Deprecated.since 5.6.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.
-
-
-
Constructor Detail
-
DarkFeatureRpc
public DarkFeatureRpc(AuthenticatedWebResourceProvider resourceProvider)
-
-
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.since 5.6. UseenableUserFeatures(String...)
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.since 5.6. UseenableSiteFeatures(String...)
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
-
-