Package com.atlassian.confluence.it
Class DarkFeaturesHelper
java.lang.Object
com.atlassian.confluence.it.DarkFeaturesHelper
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
disableSiteFeature
(String featureKey) boolean
disableUserFeature
(String featureKey) void
enableDarkFeatureModules
(com.google.common.collect.Multimap<Plugin, String> pluginModules, boolean enable) Dark features can be implemented by using disabled plugin modules, this method provides a way for tests to enable a set of plugin modules that comprise a dark featureboolean
enableSiteFeature
(String featureKey) boolean
enableSiteFeatures
(String... featureKeys) boolean
enableUserFeature
(String featureKey) boolean
enableUserFeatures
(String... featureKeys) boolean
isDarkFeatureModulesEnabled
(com.google.common.collect.Multimap<Plugin, String> pluginModules) Dark features can be implemented by using disabled plugin modules, this method queries the state of a set of dark feature modules.boolean
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.
-
Field Details
-
PROPERTY_USER_ENABLED_FEATURES
- See Also:
-
USER_DARKFEATURES_PATH
- See Also:
-
-
Constructor Details
-
DarkFeaturesHelper
-
-
Method Details
-
setUserEnabledFeatures
Sets all Dark Features enabled for the given user.- Parameters:
user
- the user to enable/disable features forfeatureKeys
- a comma-separated list of feature keys, or a blank string to disable all features
-
enableUserFeatures
-
enableUserFeature
-
disableUserFeature
-
enableSiteFeatures
-
enableSiteFeature
-
disableSiteFeature
-
isEnabled
-
isSiteFeatureEnabled
-
loadEnabledSiteFeatures
-
enableDarkFeatureModules
public void enableDarkFeatureModules(com.google.common.collect.Multimap<Plugin, String> pluginModules, boolean enable) Dark features can be implemented by using disabled plugin modules, this method provides a way for tests to enable a set of plugin modules that comprise a dark feature- Parameters:
pluginModules
-enable
- - whether the modules should be enabled or disabled
-
isDarkFeatureModulesEnabled
public boolean isDarkFeatureModulesEnabled(com.google.common.collect.Multimap<Plugin, String> pluginModules) Dark features can be implemented by using disabled plugin modules, this method queries the state of a set of dark feature modules.- Parameters:
pluginModules
- - the set of plugin modules that comprise the dark feature.- Returns:
- true if ALL modules in the pluginModules map are enabled.
-