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
ConstructorsConstructorDescriptionDefaultDarkFeaturesManager(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 TypeMethodDescriptionvoiddisableSiteFeature(String featureKey) voiddisableUserFeature(ConfluenceUser user, String featureKey) Disables the specified feature for the specified UservoiddisableUserFeature(String featureKey) voidenableSiteFeature(String featureKey) voidenableUserFeature(ConfluenceUser user, String featureKey) Enables the specified feature for the specified UservoidenableUserFeature(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:
getDarkFeaturesin interfaceDarkFeaturesManager- Returns:
- the dark features for the current user.
-
getDarkFeaturesAllUsers
Returns the dark features for the all users.- Specified by:
getDarkFeaturesAllUsersin interfaceDarkFeaturesManager- Returns:
- the dark features enabled for all users
-
getSiteDarkFeatures
- Specified by:
getSiteDarkFeaturesin interfaceDarkFeaturesManager- Returns:
- the dark features that are set for the instance
-
getDarkFeatures
- Specified by:
getDarkFeaturesin interfaceDarkFeaturesManager- Returns:
- the dark features for the given user.
- Since:
- 5.2
-
enableUserFeature
- Specified by:
enableUserFeaturein interfaceDarkFeaturesManager- Throws:
UnknownFeatureException
-
enableUserFeature
Description copied from interface:DarkFeaturesManagerEnables the specified feature for the specified User- Specified by:
enableUserFeaturein interfaceDarkFeaturesManager
-
disableUserFeature
- Specified by:
disableUserFeaturein interfaceDarkFeaturesManager- Throws:
UnknownFeatureException
-
disableUserFeature
Description copied from interface:DarkFeaturesManagerDisables the specified feature for the specified User- Specified by:
disableUserFeaturein interfaceDarkFeaturesManager
-
enableSiteFeature
- Specified by:
enableSiteFeaturein interfaceDarkFeaturesManager- Throws:
UnknownFeatureException
-
disableSiteFeature
- Specified by:
disableSiteFeaturein interfaceDarkFeaturesManager- Throws:
UnknownFeatureException
-