public class DefaultSiteDarkFeaturesStorage extends Object implements SiteDarkFeaturesStorage
| Constructor and Description |
|---|
DefaultSiteDarkFeaturesStorage(PluginSettingsFactory pluginSettingsFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String featureKey)
Tells whether the given dark feature key is defined (exists, is known) site wide.
|
void |
disable(String featureKey)
Disable the given dark feature key site wide.
|
void |
enable(String featureKey)
Enable the given dark feature key site wide.
|
com.google.common.collect.ImmutableSet<String> |
getEnabledDarkFeatures() |
public DefaultSiteDarkFeaturesStorage(PluginSettingsFactory pluginSettingsFactory)
public boolean contains(String featureKey)
SiteDarkFeaturesStoragecontains in interface SiteDarkFeaturesStoragefeatureKey - the feature key to be checked; not blank, leading and trailing whitespaces are removedtrue if the site contains the given feature key, false otherwisepublic void enable(String featureKey)
SiteDarkFeaturesStorageenable in interface SiteDarkFeaturesStoragefeatureKey - the feature key to be enabled; not blank, leading and trailing whitespaces are removedpublic void disable(String featureKey)
SiteDarkFeaturesStoragedisable in interface SiteDarkFeaturesStoragefeatureKey - the feature key to be disabled; not blank, leading and trailing whitespaces are removedpublic com.google.common.collect.ImmutableSet<String> getEnabledDarkFeatures()
getEnabledDarkFeatures in interface SiteDarkFeaturesStorageCopyright © 2019 Atlassian. All rights reserved.