com.atlassian.confluence.it.rpc.delegates.admin
Class DarkFeatureRpc

java.lang.Object
  extended by com.atlassian.confluence.it.rpc.delegates.admin.DarkFeatureRpc

public class DarkFeatureRpc
extends java.lang.Object

Interacts with the Dark Feature manager via REST.


Constructor Summary
DarkFeatureRpc(AuthenticatedWebResourceProvider resourceProvider)
           
 
Method Summary
 void disableSiteFeature(java.lang.String featureKey)
          Disables a given dark feature for the entire site.
 void disableUserFeature(java.lang.String featureKey)
          Disables a given dark feature for the logged in user.
 void enableSiteFeature(java.lang.String featureKey)
          Deprecated. since 5.6. Use enableSiteFeatures(String...)
 void enableSiteFeatures(java.lang.String... featureKeys)
          Enables dark features for the entire site.
 void enableUserFeature(java.lang.String featureKey)
          Deprecated. since 5.6. Use enableUserFeatures(String...)
 void enableUserFeatures(java.lang.String... featureKeys)
          Enables dark features for the logged in user.
 boolean isSiteFeatureEnabled(java.lang.String featureKey)
          Checks if a given dark feature is enabled for the entire site.
 boolean isUserFeatureEnabled(java.lang.String featureKey)
          Checks if a given dark feature is enabled for the logged in user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DarkFeatureRpc

public DarkFeatureRpc(AuthenticatedWebResourceProvider resourceProvider)
Method Detail

enableUserFeatures

public void enableUserFeatures(java.lang.String... featureKeys)
Enables dark features for the logged in user.

Parameters:
featureKeys - - the keys of the features to enable

enableUserFeature

@Deprecated
public void enableUserFeature(java.lang.String featureKey)
Deprecated. since 5.6. Use enableUserFeatures(String...)

Enables a given dark feature for the logged in user.

Parameters:
featureKey - - the key of the feature to enable

disableUserFeature

public void disableUserFeature(java.lang.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(java.lang.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(java.lang.String... featureKeys)
Enables dark features for the entire site.

Parameters:
featureKeys - - the keys of the features to enable

enableSiteFeature

@Deprecated
public void enableSiteFeature(java.lang.String featureKey)
Deprecated. since 5.6. Use enableSiteFeatures(String...)

Enables a given dark feature for the entire site.

Parameters:
featureKey - - the key of the feature to enable

disableSiteFeature

public void disableSiteFeature(java.lang.String featureKey)
Disables a given dark feature for the entire site.

Parameters:
featureKey - - the key of the feature to disable

isSiteFeatureEnabled

public boolean isSiteFeatureEnabled(java.lang.String featureKey)
Checks if a given dark feature is enabled for the entire site.

Parameters:
featureKey - - the key of the feature to check


Copyright © 2003-2014 Atlassian. All Rights Reserved.