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) |
Optional<Boolean> |
isEnabledForAllUsers(String featureKey) |
Optional<Boolean> |
isEnabledForCurrentUser(String featureKey) |
Optional<Boolean> |
isEnabledForUser(com.atlassian.sal.api.user.UserKey userKey,
String featureKey) |
boolean |
isFeatureEnabledForAllUsers(String featureKey)
Deprecated.
since 6.1.0 use
isEnabledForAllUsers(String) instead |
boolean |
isFeatureEnabledForCurrentUser(String featureKey)
Deprecated.
since 6.1.0 use
isEnabledForCurrentUser(String) instead |
boolean |
isFeatureEnabledForUser(com.atlassian.sal.api.user.UserKey userKey,
String featureKey)
Deprecated.
since 6.1.0 use
isEnabledForUser(UserKey, String) instead |
public ConfluenceDarkFeatureManager(DarkFeaturesManager darkFeaturesManager, UserAccessor userAccessor, PermissionManager permissionManager)
@Nonnull public Optional<Boolean> isEnabledForAllUsers(@Nonnull String featureKey)
isEnabledForAllUsers
in interface com.atlassian.sal.api.features.DarkFeatureManager
@Nonnull public Optional<Boolean> isEnabledForCurrentUser(@Nonnull String featureKey)
isEnabledForCurrentUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
@Nonnull public Optional<Boolean> isEnabledForUser(@Nullable com.atlassian.sal.api.user.UserKey userKey, @Nonnull String featureKey)
isEnabledForUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
@Deprecated public boolean isFeatureEnabledForAllUsers(String featureKey)
isEnabledForAllUsers(String)
insteadisFeatureEnabledForAllUsers
in interface com.atlassian.sal.api.features.DarkFeatureManager
@Deprecated public boolean isFeatureEnabledForCurrentUser(String featureKey)
isEnabledForCurrentUser(String)
insteadisFeatureEnabledForCurrentUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
@Deprecated public boolean isFeatureEnabledForUser(@Nullable com.atlassian.sal.api.user.UserKey userKey, String featureKey)
isEnabledForUser(UserKey, String)
insteadisFeatureEnabledForUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
public boolean canManageFeaturesForAllUsers()
canManageFeaturesForAllUsers
in interface com.atlassian.sal.api.features.DarkFeatureManager
public void enableFeatureForAllUsers(String featureKey)
enableFeatureForAllUsers
in interface com.atlassian.sal.api.features.DarkFeatureManager
public void disableFeatureForAllUsers(String featureKey)
disableFeatureForAllUsers
in interface com.atlassian.sal.api.features.DarkFeatureManager
public void enableFeatureForCurrentUser(String featureKey)
enableFeatureForCurrentUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
public void enableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey, String featureKey)
enableFeatureForUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
public void disableFeatureForCurrentUser(String featureKey)
disableFeatureForCurrentUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
public void disableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey, String featureKey)
disableFeatureForUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
public com.atlassian.sal.api.features.EnabledDarkFeatures getFeaturesEnabledForAllUsers()
getFeaturesEnabledForAllUsers
in interface com.atlassian.sal.api.features.DarkFeatureManager
public com.atlassian.sal.api.features.EnabledDarkFeatures getFeaturesEnabledForCurrentUser()
getFeaturesEnabledForCurrentUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
public com.atlassian.sal.api.features.EnabledDarkFeatures getFeaturesEnabledForUser(@Nullable com.atlassian.sal.api.user.UserKey userKey)
getFeaturesEnabledForUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
Copyright © 2003–2017 Atlassian. All rights reserved.