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 voiddisableSiteFeature(String featureKey)Disables a given dark feature for the entire site.voiddisableUserFeature(String featureKey)Disables a given dark feature for the logged in user.voidenableSiteFeature(String featureKey)Deprecated.since 5.6.voidenableSiteFeatures(String... featureKeys)Enables dark features for the entire site.voidenableUserFeature(String featureKey)Deprecated.since 5.6.voidenableUserFeatures(String... featureKeys)Enables dark features for the logged in user.booleanisSiteFeatureEnabled(String featureKey)Checks if a given dark feature is enabled for the entire site.booleanisUserFeatureEnabled(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
-
-