public class

DarkFeatures

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.setup.settings.DarkFeatures

Class Overview

Represents the current state of the dark features for a particular user.

Summary

Public Constructors
DarkFeatures(Set<String> systemEnabledFeatures, Set<String> siteEnabledFeatures, Set<String> userEnabledFeatures)
Public Methods
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(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.
static boolean isDarkFeatureEnabled(User user, String featureKey)
boolean isFeatureEnabled(String featureKey)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DarkFeatures (Set<String> systemEnabledFeatures, Set<String> siteEnabledFeatures, Set<String> userEnabledFeatures)

Public Methods

public Set<String> getAllEnabledFeatures ()

public String getAllEnabledFeaturesAsString ()

Return all the enabled features, joined with commas.

public Set<String> getGlobalEnabledFeatures ()

Returns Dark Features enabled for all users, whether by system.property or site configuration.

public Set<String> getSiteEnabledFeatures ()

public Set<String> getSystemEnabledFeatures ()

public Set<String> getUserEnabledFeatures ()

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.

public static boolean isDarkFeatureEnabled (User user, String featureKey)

public boolean isFeatureEnabled (String featureKey)