public class SetupConfluenceDarkFeatureManager extends Object implements com.atlassian.sal.api.features.DarkFeatureManager
Constructor and Description |
---|
SetupConfluenceDarkFeatureManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
canManageFeaturesForAllUsers() |
void |
disableFeatureForAllUsers(String s) |
void |
disableFeatureForCurrentUser(String s) |
void |
disableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey,
String s) |
void |
enableFeatureForAllUsers(String s) |
void |
enableFeatureForCurrentUser(String s) |
void |
enableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey,
String s) |
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) |
@NonNull Optional<Boolean> |
isEnabledForAllUsers(@NonNull String featureKey) |
@NonNull Optional<Boolean> |
isEnabledForCurrentUser(@NonNull String featureKey) |
@NonNull Optional<Boolean> |
isEnabledForUser(@Nullable com.atlassian.sal.api.user.UserKey userKey,
@NonNull String featureKey) |
boolean |
isFeatureEnabledForAllUsers(String s)
Deprecated.
since 6.1.0 use
isEnabledForAllUsers(String) instead |
boolean |
isFeatureEnabledForCurrentUser(String s)
Deprecated.
since 6.1.0 use
isEnabledForCurrentUser(String) instead |
boolean |
isFeatureEnabledForUser(com.atlassian.sal.api.user.UserKey userKey,
String s)
Deprecated.
since 6.1.0 use
isEnabledForUser(UserKey, String) instead |
public @NonNull Optional<Boolean> isEnabledForAllUsers(@NonNull String featureKey)
isEnabledForAllUsers
in interface com.atlassian.sal.api.features.DarkFeatureManager
public @NonNull Optional<Boolean> isEnabledForCurrentUser(@NonNull String featureKey)
isEnabledForCurrentUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
public @NonNull 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 s)
isEnabledForAllUsers(String)
insteadisFeatureEnabledForAllUsers
in interface com.atlassian.sal.api.features.DarkFeatureManager
@Deprecated public boolean isFeatureEnabledForCurrentUser(String s)
isEnabledForCurrentUser(String)
insteadisFeatureEnabledForCurrentUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
@Deprecated public boolean isFeatureEnabledForUser(com.atlassian.sal.api.user.UserKey userKey, String s)
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 s)
enableFeatureForAllUsers
in interface com.atlassian.sal.api.features.DarkFeatureManager
public void disableFeatureForAllUsers(String s)
disableFeatureForAllUsers
in interface com.atlassian.sal.api.features.DarkFeatureManager
public void enableFeatureForCurrentUser(String s)
enableFeatureForCurrentUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
public void enableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey, String s)
enableFeatureForUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
public void disableFeatureForCurrentUser(String s)
disableFeatureForCurrentUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
public void disableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey, String s)
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(com.atlassian.sal.api.user.UserKey userKey)
getFeaturesEnabledForUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
Copyright © 2003–2021 Atlassian. All rights reserved.