public class DefaultDarkFeaturesManager extends Object implements DarkFeaturesManager
DarkFeatures
instances from the PropertySet associated with the ThreadLocal user.Constructor and Description |
---|
DefaultDarkFeaturesManager(UserAccessor userAccessor,
com.atlassian.bandana.BandanaManager bandanaManager,
FeatureService featureService,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
void |
disableSiteFeature(String featureKey) |
void |
disableUserFeature(ConfluenceUser user,
String featureKey)
Disables the specified feature for the specified User
|
void |
disableUserFeature(String featureKey) |
void |
enableSiteFeature(String featureKey) |
void |
enableUserFeature(ConfluenceUser user,
String featureKey)
Enables the specified feature for the specified User
|
void |
enableUserFeature(String featureKey) |
DarkFeatures |
getDarkFeatures()
Returns the dark features for the current user.
|
DarkFeatures |
getDarkFeatures(ConfluenceUser user) |
DarkFeatures |
getDarkFeaturesAllUsers()
Returns the dark features for the all users.
|
DarkFeatures |
getSiteDarkFeatures() |
public DefaultDarkFeaturesManager(UserAccessor userAccessor, com.atlassian.bandana.BandanaManager bandanaManager, FeatureService featureService, com.atlassian.event.api.EventPublisher eventPublisher)
public DarkFeatures getDarkFeatures()
getDarkFeatures
in interface DarkFeaturesManager
public DarkFeatures getDarkFeaturesAllUsers()
getDarkFeaturesAllUsers
in interface DarkFeaturesManager
public DarkFeatures getSiteDarkFeatures()
getSiteDarkFeatures
in interface DarkFeaturesManager
public DarkFeatures getDarkFeatures(ConfluenceUser user)
getDarkFeatures
in interface DarkFeaturesManager
public void enableUserFeature(String featureKey) throws UnknownFeatureException
enableUserFeature
in interface DarkFeaturesManager
UnknownFeatureException
public void enableUserFeature(ConfluenceUser user, String featureKey)
DarkFeaturesManager
enableUserFeature
in interface DarkFeaturesManager
public void disableUserFeature(String featureKey) throws UnknownFeatureException
disableUserFeature
in interface DarkFeaturesManager
UnknownFeatureException
public void disableUserFeature(ConfluenceUser user, String featureKey)
DarkFeaturesManager
disableUserFeature
in interface DarkFeaturesManager
public void enableSiteFeature(String featureKey) throws UnknownFeatureException
enableSiteFeature
in interface DarkFeaturesManager
UnknownFeatureException
public void disableSiteFeature(String featureKey) throws UnknownFeatureException
disableSiteFeature
in interface DarkFeaturesManager
UnknownFeatureException
Copyright © 2003–2020 Atlassian. All rights reserved.