Class DarkFeatures
- java.lang.Object
-
- com.atlassian.confluence.setup.settings.DarkFeatures
-
public class DarkFeatures extends Object
Represents the current state of the dark features for a particular user.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Set<String>
getAllEnabledFeatures()
String
getAllEnabledFeaturesAsString()
Return all the enabled features, joined with commas.Set<String>
getGlobalEnabledFeatures()
Returns Dark Features enabled for all users, whether by system.property or site configuration.Set<String>
getSiteEnabledFeatures()
Set<String>
getSystemEnabledFeatures()
Set<String>
getUserEnabledFeatures()
static boolean
isDarkFeatureEnabled(ConfluenceUser user, String featureKey)
Returns true if the dark feature is enabled for the given user, either because of a user preference or because it is enabled site-wide via a site or system setting.static boolean
isDarkFeatureEnabled(com.atlassian.user.User user, String featureKey)
Deprecated.static boolean
isDarkFeatureEnabled(String featureKey)
Returns true if the dark feature is enabled for the current user, either because of a user preference or because it is enabled site-wide via a site or system setting.boolean
isFeatureEnabled(String featureKey)
-
-
-
Method Detail
-
getGlobalEnabledFeatures
public Set<String> getGlobalEnabledFeatures()
Returns Dark Features enabled for all users, whether by system.property or site configuration.
-
getAllEnabledFeaturesAsString
public String getAllEnabledFeaturesAsString()
Return all the enabled features, joined with commas.
-
isFeatureEnabled
public boolean isFeatureEnabled(String featureKey)
-
isDarkFeatureEnabled
public static boolean isDarkFeatureEnabled(String featureKey)
Returns true if the dark feature is enabled for the current user, either because of a user preference or because it is enabled site-wide via a site or system setting.
-
isDarkFeatureEnabled
public static boolean isDarkFeatureEnabled(ConfluenceUser user, String featureKey)
Returns true if the dark feature is enabled for the given user, either because of a user preference or because it is enabled site-wide via a site or system setting.- Since:
- 5.2
-
isDarkFeatureEnabled
@Deprecated public static boolean isDarkFeatureEnabled(com.atlassian.user.User user, String featureKey)
Deprecated.
-
-