public class DarkFeatures extends Object
Constructor and Description |
---|
DarkFeatures(Set<String> systemEnabledFeatures,
Set<String> siteEnabledFeatures,
Set<String> userEnabledFeatures) |
Modifier and Type | Method and 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(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(com.atlassian.user.User user,
String featureKey)
Deprecated.
|
boolean |
isFeatureEnabled(String featureKey) |
public Set<String> getGlobalEnabledFeatures()
public String getAllEnabledFeaturesAsString()
public boolean isFeatureEnabled(String featureKey)
public static boolean isDarkFeatureEnabled(String featureKey)
public static boolean isDarkFeatureEnabled(ConfluenceUser user, String featureKey)
@Deprecated public static boolean isDarkFeatureEnabled(com.atlassian.user.User user, String featureKey)
isDarkFeatureEnabled(com.atlassian.confluence.user.ConfluenceUser, String)
Copyright © 2003–2018 Atlassian. All rights reserved.