com.atlassian.sal.confluence.features
Class ConfluenceDarkFeatureManager
java.lang.Object
com.atlassian.sal.confluence.features.ConfluenceDarkFeatureManager
- All Implemented Interfaces:
- com.atlassian.sal.api.features.DarkFeatureManager
public class ConfluenceDarkFeatureManager
- extends java.lang.Object
- implements com.atlassian.sal.api.features.DarkFeatureManager
- Since:
- v5.2
Fields inherited from interface com.atlassian.sal.api.features.DarkFeatureManager |
ATLASSIAN_DARKFEATURE_PREFIX, DARKFEATURES_PROPERTIES_FILE_PROPERTY, DARKFEATURES_PROPERTIES_FILE_PROPERTY_DEFAULT, DISABLE_ALL_DARKFEATURES_PROPERTY |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfluenceDarkFeatureManager
public ConfluenceDarkFeatureManager(DarkFeaturesManager darkFeaturesManager,
UserAccessor userAccessor,
PermissionManager permissionManager)
isFeatureEnabledForAllUsers
public boolean isFeatureEnabledForAllUsers(java.lang.String featureKey)
- Specified by:
isFeatureEnabledForAllUsers
in interface com.atlassian.sal.api.features.DarkFeatureManager
isFeatureEnabledForCurrentUser
public boolean isFeatureEnabledForCurrentUser(java.lang.String featureKey)
- Specified by:
isFeatureEnabledForCurrentUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
isFeatureEnabledForUser
public boolean isFeatureEnabledForUser(@Nullable
com.atlassian.sal.api.user.UserKey userKey,
java.lang.String featureKey)
- Specified by:
isFeatureEnabledForUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
canManageFeaturesForAllUsers
public boolean canManageFeaturesForAllUsers()
- Specified by:
canManageFeaturesForAllUsers
in interface com.atlassian.sal.api.features.DarkFeatureManager
enableFeatureForAllUsers
public void enableFeatureForAllUsers(java.lang.String featureKey)
- Specified by:
enableFeatureForAllUsers
in interface com.atlassian.sal.api.features.DarkFeatureManager
disableFeatureForAllUsers
public void disableFeatureForAllUsers(java.lang.String featureKey)
- Specified by:
disableFeatureForAllUsers
in interface com.atlassian.sal.api.features.DarkFeatureManager
enableFeatureForCurrentUser
public void enableFeatureForCurrentUser(java.lang.String featureKey)
- Specified by:
enableFeatureForCurrentUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
enableFeatureForUser
public void enableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey,
java.lang.String featureKey)
- Specified by:
enableFeatureForUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
disableFeatureForCurrentUser
public void disableFeatureForCurrentUser(java.lang.String featureKey)
- Specified by:
disableFeatureForCurrentUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
disableFeatureForUser
public void disableFeatureForUser(com.atlassian.sal.api.user.UserKey userKey,
java.lang.String featureKey)
- Specified by:
disableFeatureForUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
getFeaturesEnabledForAllUsers
public com.atlassian.sal.api.features.EnabledDarkFeatures getFeaturesEnabledForAllUsers()
- Specified by:
getFeaturesEnabledForAllUsers
in interface com.atlassian.sal.api.features.DarkFeatureManager
getFeaturesEnabledForCurrentUser
public com.atlassian.sal.api.features.EnabledDarkFeatures getFeaturesEnabledForCurrentUser()
- Specified by:
getFeaturesEnabledForCurrentUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
getFeaturesEnabledForUser
public com.atlassian.sal.api.features.EnabledDarkFeatures getFeaturesEnabledForUser(@Nullable
com.atlassian.sal.api.user.UserKey userKey)
- Specified by:
getFeaturesEnabledForUser
in interface com.atlassian.sal.api.features.DarkFeatureManager
Copyright © 2003-2013 Atlassian. All Rights Reserved.