Package com.atlassian.sal.api.features
Interface SiteDarkFeaturesStorage
@PublicSpi
public interface SiteDarkFeaturesStorage
Persist site wide dark feature keys. The storage part used by the default
DarkFeatureManager
implementation.- Since:
- 2.10
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTells whether the given dark feature key is defined (exists, is known) site wide.voidDisable the given dark feature key site wide.voidEnable the given dark feature key site wide.The implementation of this should use an unmodifiable implementation of set as the return type.
-
Method Details
-
contains
Tells whether the given dark feature key is defined (exists, is known) site wide.- Parameters:
featureKey- the feature key to be checked; not blank, leading and trailing whitespaces are removed- Returns:
trueif the site contains the given feature key,falseotherwise
-
enable
Enable the given dark feature key site wide.- Parameters:
featureKey- the feature key to be enabled; not blank, leading and trailing whitespaces are removed
-
disable
Disable the given dark feature key site wide.- Parameters:
featureKey- the feature key to be disabled; not blank, leading and trailing whitespaces are removed
-
getEnabledDarkFeatureSet
The implementation of this should use an unmodifiable implementation of set as the return type.- Returns:
- all enabled site wide dark feature keys.
- Since:
- 4.6.0.
-