|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.setup.settings.DarkFeatures
public class DarkFeatures
Represents the current state of the dark features for a particular user.
Constructor Summary | |
---|---|
DarkFeatures(Set<String> systemEnabledFeatures,
Set<String> siteEnabledFeatures,
Set<String> userEnabledFeatures)
|
Method Summary | |
---|---|
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(com.atlassian.user.User 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. |
boolean |
isFeatureEnabled(String featureKey)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DarkFeatures(Set<String> systemEnabledFeatures, Set<String> siteEnabledFeatures, Set<String> userEnabledFeatures)
Method Detail |
---|
public Set<String> getSystemEnabledFeatures()
public Set<String> getSiteEnabledFeatures()
public Set<String> getUserEnabledFeatures()
public Set<String> getGlobalEnabledFeatures()
public Set<String> getAllEnabledFeatures()
public String getAllEnabledFeaturesAsString()
public boolean isFeatureEnabled(String featureKey)
public static boolean isDarkFeatureEnabled(String featureKey)
public static boolean isDarkFeatureEnabled(com.atlassian.user.User user, String featureKey)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |