Interface DarkFeaturesManager
-
- All Known Implementing Classes:
DefaultDarkFeaturesManager
,VacantDarkFeaturesManager
public interface DarkFeaturesManager
CreatesDarkFeatures
instances from the PropertySet associated with the ThreadLocal user.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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)
DarkFeatures
getDarkFeatures()
DarkFeatures
getDarkFeatures(ConfluenceUser user)
DarkFeatures
getDarkFeaturesAllUsers()
DarkFeatures
getSiteDarkFeatures()
-
-
-
Method Detail
-
getDarkFeatures
DarkFeatures getDarkFeatures()
- Returns:
- the dark features for the current user.
-
getDarkFeatures
DarkFeatures getDarkFeatures(ConfluenceUser user)
- 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
void enableUserFeature(String featureKey) throws UnknownFeatureException
- Throws:
UnknownFeatureException
-
enableUserFeature
void enableUserFeature(ConfluenceUser user, String featureKey) throws UnknownFeatureException
Enables the specified feature for the specified User- Throws:
UnknownFeatureException
-
disableUserFeature
void disableUserFeature(String featureKey) throws UnknownFeatureException
- Throws:
UnknownFeatureException
-
disableUserFeature
void disableUserFeature(ConfluenceUser user, String featureKey) throws UnknownFeatureException
Disables the specified feature for the specified User- Throws:
UnknownFeatureException
-
enableSiteFeature
void enableSiteFeature(String featureKey) throws UnknownFeatureException
- Throws:
UnknownFeatureException
-
disableSiteFeature
void disableSiteFeature(String featureKey) throws UnknownFeatureException
- Throws:
UnknownFeatureException
-
getDarkFeaturesAllUsers
DarkFeatures getDarkFeaturesAllUsers()
- Returns:
- the dark features enabled for all users
-
-