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 |
getDarkFeatures(com.atlassian.user.User user)
Deprecated.
Since 5.2 - Use
getDarkFeatures(com.atlassian.confluence.user.ConfluenceUser) |
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
@Deprecated public DarkFeatures getDarkFeatures(com.atlassian.user.User user)
getDarkFeatures(com.atlassian.confluence.user.ConfluenceUser)
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–2017 Atlassian. All rights reserved.