public class ConfluenceDarkFeatureManager extends Object implements com.atlassian.sal.api.features.DarkFeatureManager
| Constructor and Description |
|---|
ConfluenceDarkFeatureManager(DarkFeaturesManager darkFeaturesManager,
UserAccessor userAccessor,
PermissionManager permissionManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canManageFeaturesForAllUsers() |
void |
disableFeatureForAllUsers(String featureKey) |
void |
disableFeatureForCurrentUser(String featureKey) |
void |
disableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey,
String featureKey) |
void |
enableFeatureForAllUsers(String featureKey) |
void |
enableFeatureForCurrentUser(String featureKey) |
void |
enableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey,
String featureKey) |
com.atlassian.sal.api.features.EnabledDarkFeatures |
getFeaturesEnabledForAllUsers() |
com.atlassian.sal.api.features.EnabledDarkFeatures |
getFeaturesEnabledForCurrentUser() |
com.atlassian.sal.api.features.EnabledDarkFeatures |
getFeaturesEnabledForUser(com.atlassian.sal.api.user.UserKey userKey) |
boolean |
isFeatureEnabledForAllUsers(String featureKey) |
boolean |
isFeatureEnabledForCurrentUser(String featureKey) |
boolean |
isFeatureEnabledForUser(com.atlassian.sal.api.user.UserKey userKey,
String featureKey) |
public ConfluenceDarkFeatureManager(DarkFeaturesManager darkFeaturesManager, UserAccessor userAccessor, PermissionManager permissionManager)
public boolean isFeatureEnabledForAllUsers(String featureKey)
isFeatureEnabledForAllUsers in interface com.atlassian.sal.api.features.DarkFeatureManagerpublic boolean isFeatureEnabledForCurrentUser(String featureKey)
isFeatureEnabledForCurrentUser in interface com.atlassian.sal.api.features.DarkFeatureManagerpublic boolean isFeatureEnabledForUser(@Nullable com.atlassian.sal.api.user.UserKey userKey, String featureKey)
isFeatureEnabledForUser in interface com.atlassian.sal.api.features.DarkFeatureManagerpublic boolean canManageFeaturesForAllUsers()
canManageFeaturesForAllUsers in interface com.atlassian.sal.api.features.DarkFeatureManagerpublic void enableFeatureForAllUsers(String featureKey)
enableFeatureForAllUsers in interface com.atlassian.sal.api.features.DarkFeatureManagerpublic void disableFeatureForAllUsers(String featureKey)
disableFeatureForAllUsers in interface com.atlassian.sal.api.features.DarkFeatureManagerpublic void enableFeatureForCurrentUser(String featureKey)
enableFeatureForCurrentUser in interface com.atlassian.sal.api.features.DarkFeatureManagerpublic void enableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey,
String featureKey)
enableFeatureForUser in interface com.atlassian.sal.api.features.DarkFeatureManagerpublic void disableFeatureForCurrentUser(String featureKey)
disableFeatureForCurrentUser in interface com.atlassian.sal.api.features.DarkFeatureManagerpublic void disableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey,
String featureKey)
disableFeatureForUser in interface com.atlassian.sal.api.features.DarkFeatureManagerpublic com.atlassian.sal.api.features.EnabledDarkFeatures getFeaturesEnabledForAllUsers()
getFeaturesEnabledForAllUsers in interface com.atlassian.sal.api.features.DarkFeatureManagerpublic com.atlassian.sal.api.features.EnabledDarkFeatures getFeaturesEnabledForCurrentUser()
getFeaturesEnabledForCurrentUser in interface com.atlassian.sal.api.features.DarkFeatureManagerpublic com.atlassian.sal.api.features.EnabledDarkFeatures getFeaturesEnabledForUser(@Nullable com.atlassian.sal.api.user.UserKey userKey)
getFeaturesEnabledForUser in interface com.atlassian.sal.api.features.DarkFeatureManagerCopyright © 2003–2016 Atlassian. All rights reserved.