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)
-
Field Summary
Fields inherited from interface com.atlassian.sal.api.features.DarkFeatureManager
ATLASSIAN_DARKFEATURE_PREFIX, DARKFEATURES_PROPERTIES_FILE_PROPERTY, DARKFEATURES_PROPERTIES_FILE_PROPERTY_DEFAULT, DISABLE_ALL_DARKFEATURES_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionConfluenceDarkFeatureManager(DarkFeaturesManager darkFeaturesManager, ConfluenceUserResolver confluenceUserResolver, PermissionManager permissionManager) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoiddisableFeatureForAllUsers(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.EnabledDarkFeaturescom.atlassian.sal.api.features.EnabledDarkFeaturescom.atlassian.sal.api.features.EnabledDarkFeaturesgetFeaturesEnabledForUser(@Nullable com.atlassian.sal.api.user.UserKey userKey) isEnabledForAllUsers(@NonNull String featureKey) isEnabledForCurrentUser(@NonNull String featureKey) 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 Details
-
ConfluenceDarkFeatureManager
public ConfluenceDarkFeatureManager(DarkFeaturesManager darkFeaturesManager, ConfluenceUserResolver confluenceUserResolver, PermissionManager permissionManager)
-
-
Method Details
-
isEnabledForAllUsers
- Specified by:
isEnabledForAllUsersin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
isEnabledForCurrentUser
- 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
- Specified by:
isFeatureEnabledForAllUsersin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
isFeatureEnabledForCurrentUser
- 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
- Specified by:
enableFeatureForAllUsersin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
disableFeatureForAllUsers
- Specified by:
disableFeatureForAllUsersin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
enableFeatureForCurrentUser
- Specified by:
enableFeatureForCurrentUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
enableFeatureForUser
- Specified by:
enableFeatureForUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
disableFeatureForCurrentUser
- Specified by:
disableFeatureForCurrentUserin interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
disableFeatureForUser
- 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
-