com.atlassian.confluence.it
Class DarkFeaturesHelper

java.lang.Object
  extended by com.atlassian.confluence.it.DarkFeaturesHelper

public class DarkFeaturesHelper
extends Object


Field Summary
static String PROPERTY_USER_ENABLED_FEATURES
           
static String USER_DARKFEATURES_PATH
           
 
Constructor Summary
DarkFeaturesHelper(ConfluenceRpc rpc)
           
 
Method Summary
 boolean disableSiteFeature(String featureKey)
           
 boolean disableUserFeature(String featureKey)
           
 boolean enableSiteFeature(String featureKey)
           
 boolean enableUserFeature(String featureKey)
           
 boolean isEnabled(String featureKey)
           
static boolean isEnabled(String featureKey, ConfluenceRpc rpc)
          Deprecated. Since 5.0 Use the non-static method.
 boolean isSiteFeatureEnabled(String featureKey)
           
 void loadEnabledSiteFeatures(User user, String... features)
           
 void setUserEnabledFeatures(User user, String featureKeys)
          Sets all Dark Features enabled for the given user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_USER_ENABLED_FEATURES

public static final String PROPERTY_USER_ENABLED_FEATURES
See Also:
Constant Field Values

USER_DARKFEATURES_PATH

public static final String USER_DARKFEATURES_PATH
See Also:
Constant Field Values
Constructor Detail

DarkFeaturesHelper

public DarkFeaturesHelper(ConfluenceRpc rpc)
Method Detail

setUserEnabledFeatures

public void setUserEnabledFeatures(User user,
                                   String featureKeys)
Sets all Dark Features enabled for the given user.

Parameters:
user - the user to enable/disable features for
featureKeys - a comma-separated list of feature keys, or a blank string to disable all features

enableUserFeature

public boolean enableUserFeature(String featureKey)

disableUserFeature

public boolean disableUserFeature(String featureKey)

enableSiteFeature

public boolean enableSiteFeature(String featureKey)

disableSiteFeature

public boolean disableSiteFeature(String featureKey)

isEnabled

@Deprecated
public static boolean isEnabled(String featureKey,
                                           ConfluenceRpc rpc)
Deprecated. Since 5.0 Use the non-static method.


isEnabled

public boolean isEnabled(String featureKey)

isSiteFeatureEnabled

public boolean isSiteFeatureEnabled(String featureKey)

loadEnabledSiteFeatures

public void loadEnabledSiteFeatures(User user,
                                    String... features)


Copyright © 2003-2013 Atlassian. All Rights Reserved.