Package com.atlassian.sal.api.features
Class EnabledDarkFeaturesBuilder
java.lang.Object
com.atlassian.sal.api.features.EnabledDarkFeaturesBuilder
- Since:
- 2.10
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()featuresEnabledForAllUsers(Set<String> enabledFeatureKeys) Set features enabled for all users which can be changed during runtime.featuresEnabledForCurrentUser(Set<String> enabledFeatureKeys) Set features enabled for the current user only.unmodifiableFeaturesEnabledForAllUsers(Set<String> enabledFeatureKeys) Set features enabled for all users which cannot be changed during runtime.
-
Constructor Details
-
EnabledDarkFeaturesBuilder
public EnabledDarkFeaturesBuilder()
-
-
Method Details
-
unmodifiableFeaturesEnabledForAllUsers
public EnabledDarkFeaturesBuilder unmodifiableFeaturesEnabledForAllUsers(@Nullable Set<String> enabledFeatureKeys) Set features enabled for all users which cannot be changed during runtime.- Parameters:
enabledFeatureKeys- enabled features for all users; can benull- Returns:
- the builder itself
-
featuresEnabledForAllUsers
public EnabledDarkFeaturesBuilder featuresEnabledForAllUsers(@Nullable Set<String> enabledFeatureKeys) Set features enabled for all users which can be changed during runtime.- Parameters:
enabledFeatureKeys- enabled features for all users; can benull- Returns:
- the builder itself
-
featuresEnabledForCurrentUser
public EnabledDarkFeaturesBuilder featuresEnabledForCurrentUser(@Nullable Set<String> enabledFeatureKeys) Set features enabled for the current user only.- Parameters:
enabledFeatureKeys- enabled features for the current user only; can benull- Returns:
- the builder itself
-
build
-