Package com.atlassian.crowd.feature
Class DarkFeatureManagerOsgiAccessor
java.lang.Object
com.atlassian.applinks.host.OsgiServiceProxyFactory
com.atlassian.crowd.feature.DarkFeatureManagerOsgiAccessor
- All Implemented Interfaces:
com.atlassian.sal.api.features.DarkFeatureManager
,org.springframework.beans.factory.InitializingBean
public class DarkFeatureManagerOsgiAccessor
extends com.atlassian.applinks.host.OsgiServiceProxyFactory
implements com.atlassian.sal.api.features.DarkFeatureManager, org.springframework.beans.factory.InitializingBean
Allows using the DarkFeatureManager that lives in the Crowd SAL plugin from the Crowd host.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.applinks.host.OsgiServiceProxyFactory
com.atlassian.applinks.host.OsgiServiceProxyFactory.ServiceTimeoutExceeded, com.atlassian.applinks.host.OsgiServiceProxyFactory.ServiceTrackerFactory
-
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
ConstructorDescriptionDarkFeatureManagerOsgiAccessor
(CrowdOsgiContainerManager osgiContainerManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
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
com.atlassian.sal.api.features.EnabledDarkFeatures
com.atlassian.sal.api.features.EnabledDarkFeatures
getFeaturesEnabledForUser
(com.atlassian.sal.api.user.UserKey userKey) isEnabledForAllUsers
(String featureKey) isEnabledForCurrentUser
(String featureKey) isEnabledForUser
(com.atlassian.sal.api.user.UserKey userKey, String featureKey) boolean
isFeatureEnabledForAllUsers
(String featureKey) boolean
isFeatureEnabledForCurrentUser
(String featureKey) boolean
isFeatureEnabledForUser
(com.atlassian.sal.api.user.UserKey userKey, String featureKey) Methods inherited from class com.atlassian.applinks.host.OsgiServiceProxyFactory
createProxy
-
Constructor Details
-
DarkFeatureManagerOsgiAccessor
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
isEnabledForAllUsers
- Specified by:
isEnabledForAllUsers
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
isEnabledForCurrentUser
- Specified by:
isEnabledForCurrentUser
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
isEnabledForUser
@Nonnull public 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
- Specified by:
isFeatureEnabledForAllUsers
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
isFeatureEnabledForCurrentUser
- Specified by:
isFeatureEnabledForCurrentUser
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
isFeatureEnabledForUser
public boolean isFeatureEnabledForUser(com.atlassian.sal.api.user.UserKey userKey, String featureKey) - 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
- Specified by:
enableFeatureForAllUsers
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
disableFeatureForAllUsers
- Specified by:
disableFeatureForAllUsers
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
enableFeatureForCurrentUser
- Specified by:
enableFeatureForCurrentUser
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
enableFeatureForUser
- Specified by:
enableFeatureForUser
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
disableFeatureForCurrentUser
- Specified by:
disableFeatureForCurrentUser
in interfacecom.atlassian.sal.api.features.DarkFeatureManager
-
disableFeatureForUser
- 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
-