public class VacantDarkFeaturesManager extends Object implements DarkFeaturesManager
Modifier and Type | Field and Description |
---|---|
protected static DarkFeatures |
NO_FEATURES |
protected static DarkFeatures |
ONLY_SYSTEM_FEATURES |
Constructor and Description |
---|
VacantDarkFeaturesManager(FeatureService featureService) |
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()
This is vacant (tenant-less) manager.
|
DarkFeatures |
getDarkFeatures(ConfluenceUser user)
This is vacant (tenant-less) manager.
|
DarkFeatures |
getDarkFeatures(com.atlassian.user.User user)
Deprecated.
Since 5.2 - Use
getDarkFeatures(com.atlassian.confluence.user.ConfluenceUser)
This is vacant (tenant-less) manager. Returning only system-wide features. |
DarkFeatures |
getDarkFeaturesAllUsers()
This is vacant (tenant-less) manager.
|
DarkFeatures |
getSiteDarkFeatures()
This is vacant (tenant-less) manager.
|
protected static final DarkFeatures NO_FEATURES
protected static final DarkFeatures ONLY_SYSTEM_FEATURES
public VacantDarkFeaturesManager(FeatureService featureService)
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)
This is vacant (tenant-less) manager. Returning only system-wide features.
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–2018 Atlassian. All rights reserved.