Class ConfluenceDarkFeatureManager
- java.lang.Object
-
- com.atlassian.confluence.api.impl.sal.ConfluenceDarkFeatureManager
-
- All Implemented Interfaces:
com.atlassian.sal.api.features.DarkFeatureManager
public class ConfluenceDarkFeatureManager extends Object implements com.atlassian.sal.api.features.DarkFeatureManager
- Since:
- 5.7. (Formerly in SAL plugin, since 5.2)
-
-
Constructor Summary
Constructors Constructor Description ConfluenceDarkFeatureManager(DarkFeaturesManager darkFeaturesManager, ConfluenceUserResolver confluenceUserResolver, PermissionManager permissionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanManageFeaturesForAllUsers()voiddisableFeatureForAllUsers(String featureKey)voiddisableFeatureForCurrentUser(String featureKey)voiddisableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey, String featureKey)voidenableFeatureForAllUsers(String featureKey)voidenableFeatureForCurrentUser(String featureKey)voidenableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey, String featureKey)com.atlassian.sal.api.features.EnabledDarkFeaturesgetFeaturesEnabledForAllUsers()com.atlassian.sal.api.features.EnabledDarkFeaturesgetFeaturesEnabledForCurrentUser()com.atlassian.sal.api.features.EnabledDarkFeaturesgetFeaturesEnabledForUser(@Nullable 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)booleanisFeatureEnabledForAllUsers(String featureKey)booleanisFeatureEnabledForCurrentUser(String featureKey)booleanisFeatureEnabledForUser(@Nullable com.atlassian.sal.api.user.UserKey userKey, String featureKey)
-
-
-
Constructor Detail
-
ConfluenceDarkFeatureManager
public ConfluenceDarkFeatureManager(DarkFeaturesManager darkFeaturesManager, ConfluenceUserResolver confluenceUserResolver, PermissionManager permissionManager)
-
-
Method Detail
-
isEnabledForAllUsers
public @NonNull Optional<Boolean> isEnabledForAllUsers(@NonNull String featureKey)
- Specified by:
isEnabledForAllUsersin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
isEnabledForCurrentUser
public @NonNull Optional<Boolean> isEnabledForCurrentUser(@NonNull String featureKey)
- Specified by:
isEnabledForCurrentUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
isEnabledForUser
public @NonNull Optional<Boolean> isEnabledForUser(@Nullable com.atlassian.sal.api.user.UserKey userKey, @NonNull String featureKey)
- Specified by:
isEnabledForUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
isFeatureEnabledForAllUsers
public boolean isFeatureEnabledForAllUsers(String featureKey)
- Specified by:
isFeatureEnabledForAllUsersin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
isFeatureEnabledForCurrentUser
public boolean isFeatureEnabledForCurrentUser(String featureKey)
- Specified by:
isFeatureEnabledForCurrentUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
isFeatureEnabledForUser
public boolean isFeatureEnabledForUser(@Nullable com.atlassian.sal.api.user.UserKey userKey, String featureKey)- Specified by:
isFeatureEnabledForUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
canManageFeaturesForAllUsers
public boolean canManageFeaturesForAllUsers()
- Specified by:
canManageFeaturesForAllUsersin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
enableFeatureForAllUsers
public void enableFeatureForAllUsers(String featureKey)
- Specified by:
enableFeatureForAllUsersin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
disableFeatureForAllUsers
public void disableFeatureForAllUsers(String featureKey)
- Specified by:
disableFeatureForAllUsersin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
enableFeatureForCurrentUser
public void enableFeatureForCurrentUser(String featureKey)
- Specified by:
enableFeatureForCurrentUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
enableFeatureForUser
public void enableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey, String featureKey)- Specified by:
enableFeatureForUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
disableFeatureForCurrentUser
public void disableFeatureForCurrentUser(String featureKey)
- Specified by:
disableFeatureForCurrentUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
disableFeatureForUser
public void disableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey, String featureKey)- Specified by:
disableFeatureForUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
getFeaturesEnabledForAllUsers
public com.atlassian.sal.api.features.EnabledDarkFeatures getFeaturesEnabledForAllUsers()
- Specified by:
getFeaturesEnabledForAllUsersin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
getFeaturesEnabledForCurrentUser
public com.atlassian.sal.api.features.EnabledDarkFeatures getFeaturesEnabledForCurrentUser()
- Specified by:
getFeaturesEnabledForCurrentUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
getFeaturesEnabledForUser
public com.atlassian.sal.api.features.EnabledDarkFeatures getFeaturesEnabledForUser(@Nullable com.atlassian.sal.api.user.UserKey userKey)
- Specified by:
getFeaturesEnabledForUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
-