|
||||||||||
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(java.util.Set<java.lang.String> systemEnabledFeatures,
java.util.Set<java.lang.String> siteEnabledFeatures,
java.util.Set<java.lang.String> userEnabledFeatures)
|
Method Summary | |
---|---|
java.util.Set<java.lang.String> |
getAllEnabledFeatures()
|
java.lang.String |
getAllEnabledFeaturesAsString()
Return all the enabled features, joined with commas. |
java.util.Set<java.lang.String> |
getGlobalEnabledFeatures()
Returns Dark Features enabled for all users, whether by system.property or site configuration. |
java.util.Set<java.lang.String> |
getSiteEnabledFeatures()
|
java.util.Set<java.lang.String> |
getSystemEnabledFeatures()
|
java.util.Set<java.lang.String> |
getUserEnabledFeatures()
|
static boolean |
isDarkFeatureEnabled(ConfluenceUser user,
java.lang.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(java.lang.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,
java.lang.String featureKey)
Deprecated. Since 5.2 - Use isDarkFeatureEnabled(com.atlassian.confluence.user.ConfluenceUser, String) |
boolean |
isFeatureEnabled(java.lang.String featureKey)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DarkFeatures(java.util.Set<java.lang.String> systemEnabledFeatures, java.util.Set<java.lang.String> siteEnabledFeatures, java.util.Set<java.lang.String> userEnabledFeatures)
Method Detail |
---|
public java.util.Set<java.lang.String> getSystemEnabledFeatures()
public java.util.Set<java.lang.String> getSiteEnabledFeatures()
public java.util.Set<java.lang.String> getUserEnabledFeatures()
public java.util.Set<java.lang.String> getGlobalEnabledFeatures()
public java.util.Set<java.lang.String> getAllEnabledFeatures()
public java.lang.String getAllEnabledFeaturesAsString()
public boolean isFeatureEnabled(java.lang.String featureKey)
public static boolean isDarkFeatureEnabled(java.lang.String featureKey)
public static boolean isDarkFeatureEnabled(ConfluenceUser user, java.lang.String featureKey)
@Deprecated public static boolean isDarkFeatureEnabled(com.atlassian.user.User user, java.lang.String featureKey)
isDarkFeatureEnabled(com.atlassian.confluence.user.ConfluenceUser, String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |