Class DefaultDarkFeaturesManager
java.lang.Object
com.atlassian.confluence.setup.settings.DefaultDarkFeaturesManager
- All Implemented Interfaces:
DarkFeaturesManager
Creates
DarkFeatures
instances from the PropertySet associated with the ThreadLocal user.-
Constructor Summary
ConstructorDescriptionDefaultDarkFeaturesManager
(UserAccessor userAccessor, FeatureService ignored, com.atlassian.event.api.EventPublisher eventPublisher, SiteDarkFeaturesDao siteDarkFeaturesDao, BuildNumberActivatedDarkFeatures buildNumberActivatedDarkFeatures) Deprecated.since 7.16DefaultDarkFeaturesManager
(UserPreferencesAccessor userPreferencesAccessor, FeatureService ignored, com.atlassian.event.api.EventPublisher eventPublisher, SiteDarkFeaturesDao siteDarkFeaturesDao, BuildNumberActivatedDarkFeatures buildNumberActivatedDarkFeatures) -
Method Summary
Modifier and TypeMethodDescriptionvoid
disableSiteFeature
(String featureKey) void
disableUserFeature
(ConfluenceUser user, String featureKey) Disables the specified feature for the specified Uservoid
disableUserFeature
(String featureKey) void
enableSiteFeature
(String featureKey) void
enableUserFeature
(ConfluenceUser user, String featureKey) Enables the specified feature for the specified Uservoid
enableUserFeature
(String featureKey) Returns the dark features for the current user.Returns the dark features for the all users.
-
Constructor Details
-
DefaultDarkFeaturesManager
public DefaultDarkFeaturesManager(UserPreferencesAccessor userPreferencesAccessor, FeatureService ignored, com.atlassian.event.api.EventPublisher eventPublisher, SiteDarkFeaturesDao siteDarkFeaturesDao, BuildNumberActivatedDarkFeatures buildNumberActivatedDarkFeatures) - Since:
- 7.16
-
DefaultDarkFeaturesManager
@Deprecated public DefaultDarkFeaturesManager(UserAccessor userAccessor, FeatureService ignored, com.atlassian.event.api.EventPublisher eventPublisher, SiteDarkFeaturesDao siteDarkFeaturesDao, BuildNumberActivatedDarkFeatures buildNumberActivatedDarkFeatures) Deprecated.since 7.16
-
-
Method Details
-
getDarkFeatures
Returns the dark features for the current user.- Specified by:
getDarkFeatures
in interfaceDarkFeaturesManager
- Returns:
- the dark features for the current user.
-
getDarkFeaturesAllUsers
Returns the dark features for the all users.- Specified by:
getDarkFeaturesAllUsers
in interfaceDarkFeaturesManager
- Returns:
- the dark features enabled for all users
-
getSiteDarkFeatures
- Specified by:
getSiteDarkFeatures
in interfaceDarkFeaturesManager
- Returns:
- the dark features that are set for the instance
-
getDarkFeatures
- Specified by:
getDarkFeatures
in interfaceDarkFeaturesManager
- Returns:
- the dark features for the given user.
- Since:
- 5.2
-
enableUserFeature
- Specified by:
enableUserFeature
in interfaceDarkFeaturesManager
- Throws:
UnknownFeatureException
-
enableUserFeature
Description copied from interface:DarkFeaturesManager
Enables the specified feature for the specified User- Specified by:
enableUserFeature
in interfaceDarkFeaturesManager
-
disableUserFeature
- Specified by:
disableUserFeature
in interfaceDarkFeaturesManager
- Throws:
UnknownFeatureException
-
disableUserFeature
Description copied from interface:DarkFeaturesManager
Disables the specified feature for the specified User- Specified by:
disableUserFeature
in interfaceDarkFeaturesManager
-
enableSiteFeature
- Specified by:
enableSiteFeature
in interfaceDarkFeaturesManager
- Throws:
UnknownFeatureException
-
disableSiteFeature
- Specified by:
disableSiteFeature
in interfaceDarkFeaturesManager
- Throws:
UnknownFeatureException
-