Class SetupConfluenceDarkFeatureManager
- java.lang.Object
-
- com.atlassian.confluence.api.impl.sal.SetupConfluenceDarkFeatureManager
-
- All Implemented Interfaces:
com.atlassian.sal.api.features.DarkFeatureManager
public class SetupConfluenceDarkFeatureManager extends Object implements com.atlassian.sal.api.features.DarkFeatureManager
-
-
Constructor Summary
Constructors Constructor Description SetupConfluenceDarkFeatureManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
boolean
isFeatureEnabledForCurrentUser(String s)
boolean
isFeatureEnabledForUser(com.atlassian.sal.api.user.UserKey userKey, String s)
-
-
-
Method Detail
-
isEnabledForAllUsers
public @NonNull Optional<Boolean> isEnabledForAllUsers(@NonNull String featureKey)
- Specified by:
isEnabledForAllUsers
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
isEnabledForCurrentUser
public @NonNull Optional<Boolean> isEnabledForCurrentUser(@NonNull String featureKey)
- Specified by:
isEnabledForCurrentUser
in 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:
isEnabledForUser
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
isFeatureEnabledForAllUsers
public boolean isFeatureEnabledForAllUsers(String s)
- Specified by:
isFeatureEnabledForAllUsers
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
isFeatureEnabledForCurrentUser
public boolean isFeatureEnabledForCurrentUser(String s)
- Specified by:
isFeatureEnabledForCurrentUser
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
isFeatureEnabledForUser
public boolean isFeatureEnabledForUser(com.atlassian.sal.api.user.UserKey userKey, String s)
- Specified by:
isFeatureEnabledForUser
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
canManageFeaturesForAllUsers
public boolean canManageFeaturesForAllUsers()
- Specified by:
canManageFeaturesForAllUsers
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
enableFeatureForAllUsers
public void enableFeatureForAllUsers(String s)
- Specified by:
enableFeatureForAllUsers
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
disableFeatureForAllUsers
public void disableFeatureForAllUsers(String s)
- Specified by:
disableFeatureForAllUsers
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
enableFeatureForCurrentUser
public void enableFeatureForCurrentUser(String s)
- Specified by:
enableFeatureForCurrentUser
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
enableFeatureForUser
public void enableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey, String s)
- Specified by:
enableFeatureForUser
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
disableFeatureForCurrentUser
public void disableFeatureForCurrentUser(String s)
- Specified by:
disableFeatureForCurrentUser
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
disableFeatureForUser
public void disableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey, String s)
- Specified by:
disableFeatureForUser
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
getFeaturesEnabledForAllUsers
public com.atlassian.sal.api.features.EnabledDarkFeatures getFeaturesEnabledForAllUsers()
- Specified by:
getFeaturesEnabledForAllUsers
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
getFeaturesEnabledForCurrentUser
public com.atlassian.sal.api.features.EnabledDarkFeatures getFeaturesEnabledForCurrentUser()
- Specified by:
getFeaturesEnabledForCurrentUser
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
getFeaturesEnabledForUser
public com.atlassian.sal.api.features.EnabledDarkFeatures getFeaturesEnabledForUser(com.atlassian.sal.api.user.UserKey userKey)
- Specified by:
getFeaturesEnabledForUser
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
-