Class VacantDarkFeaturesManager
- java.lang.Object
-
- com.atlassian.confluence.setup.settings.VacantDarkFeaturesManager
-
- All Implemented Interfaces:
DarkFeaturesManager
public class VacantDarkFeaturesManager extends Object implements DarkFeaturesManager
-
-
Field Summary
Fields Modifier and Type Field Description protected static DarkFeatures
NO_FEATURES
protected static DarkFeatures
ONLY_SYSTEM_FEATURES
static Set<String>
SYSTEM_DISABLED_FEATURES
-
Constructor Summary
Constructors Constructor Description VacantDarkFeaturesManager(FeatureService ignored)
Deprecated.since 8.3
-
Method Summary
All Methods Instance Methods Concrete 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()
This is vacant (tenant-less) manager.DarkFeatures
getDarkFeatures(ConfluenceUser user)
This is vacant (tenant-less) manager.DarkFeatures
getDarkFeaturesAllUsers()
This is vacant (tenant-less) manager.DarkFeatures
getSiteDarkFeatures()
This is vacant (tenant-less) manager.
-
-
-
Field Detail
-
NO_FEATURES
protected static final DarkFeatures NO_FEATURES
-
ONLY_SYSTEM_FEATURES
protected static final DarkFeatures ONLY_SYSTEM_FEATURES
-
-
Constructor Detail
-
VacantDarkFeaturesManager
@Deprecated public VacantDarkFeaturesManager(FeatureService ignored)
Deprecated.since 8.3
-
-
Method Detail
-
getDarkFeatures
public DarkFeatures getDarkFeatures()
This is vacant (tenant-less) manager. Returning only system-wide features.- Specified by:
getDarkFeatures
in interfaceDarkFeaturesManager
- Returns:
- the dark features for the current user.
-
getDarkFeaturesAllUsers
public DarkFeatures getDarkFeaturesAllUsers()
This is vacant (tenant-less) manager. Returning only system-wide features.- Specified by:
getDarkFeaturesAllUsers
in interfaceDarkFeaturesManager
- Returns:
- the dark features enabled for all users
-
getSiteDarkFeatures
public DarkFeatures getSiteDarkFeatures()
This is vacant (tenant-less) manager. Returning only system-wide features.- Specified by:
getSiteDarkFeatures
in interfaceDarkFeaturesManager
- Returns:
- the dark features that are set for the instance
-
getDarkFeatures
public DarkFeatures getDarkFeatures(ConfluenceUser user)
This is vacant (tenant-less) manager. Returning only system-wide features.- Specified by:
getDarkFeatures
in interfaceDarkFeaturesManager
- Returns:
- the dark features for the given user.
-
enableUserFeature
public void enableUserFeature(String featureKey) throws UnknownFeatureException
- Specified by:
enableUserFeature
in interfaceDarkFeaturesManager
- Throws:
UnknownFeatureException
-
enableUserFeature
public void enableUserFeature(ConfluenceUser user, String featureKey)
Description copied from interface:DarkFeaturesManager
Enables the specified feature for the specified User- Specified by:
enableUserFeature
in interfaceDarkFeaturesManager
-
disableUserFeature
public void disableUserFeature(String featureKey) throws UnknownFeatureException
- Specified by:
disableUserFeature
in interfaceDarkFeaturesManager
- Throws:
UnknownFeatureException
-
disableUserFeature
public void disableUserFeature(ConfluenceUser user, String featureKey)
Description copied from interface:DarkFeaturesManager
Disables the specified feature for the specified User- Specified by:
disableUserFeature
in interfaceDarkFeaturesManager
-
enableSiteFeature
public void enableSiteFeature(String featureKey) throws UnknownFeatureException
- Specified by:
enableSiteFeature
in interfaceDarkFeaturesManager
- Throws:
UnknownFeatureException
-
disableSiteFeature
public void disableSiteFeature(String featureKey) throws UnknownFeatureException
- Specified by:
disableSiteFeature
in interfaceDarkFeaturesManager
- Throws:
UnknownFeatureException
-
-