Interface DarkFeaturesManager
- All Known Implementing Classes:
DefaultDarkFeaturesManager
,VacantDarkFeaturesManager
public interface DarkFeaturesManager
Creates
DarkFeatures
instances from the PropertySet associated with the ThreadLocal user.-
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)
-
Method Details
-
getDarkFeatures
DarkFeatures getDarkFeatures()- Returns:
- the dark features for the current user.
-
getDarkFeatures
- Returns:
- the dark features for the given user.
- Since:
- 5.2
-
getSiteDarkFeatures
DarkFeatures getSiteDarkFeatures()- Returns:
- the dark features that are set for the instance
-
enableUserFeature
- Throws:
UnknownFeatureException
-
enableUserFeature
Enables the specified feature for the specified User- Throws:
UnknownFeatureException
-
disableUserFeature
- Throws:
UnknownFeatureException
-
disableUserFeature
Disables the specified feature for the specified User- Throws:
UnknownFeatureException
-
enableSiteFeature
- Throws:
UnknownFeatureException
-
disableSiteFeature
- Throws:
UnknownFeatureException
-
getDarkFeaturesAllUsers
DarkFeatures getDarkFeaturesAllUsers()- Returns:
- the dark features enabled for all users
-