com.atlassian.confluence.setup.settings
Class DefaultDarkFeaturesManager

java.lang.Object
  extended by com.atlassian.confluence.setup.settings.DefaultDarkFeaturesManager
All Implemented Interfaces:
DarkFeaturesManager

public class DefaultDarkFeaturesManager
extends Object
implements DarkFeaturesManager

Creates DarkFeatures instances from the PropertySet associated with the ThreadLocal user.


Constructor Summary
DefaultDarkFeaturesManager(UserAccessor userAccessor, com.atlassian.bandana.BandanaManager bandanaManager)
           
 
Method Summary
 void disableSiteFeature(String featureKey)
           
 void disableUserFeature(String featureKey)
           
 void enableSiteFeature(String featureKey)
           
 void enableUserFeature(String featureKey)
           
 DarkFeatures getDarkFeatures()
          Returns the dark features for the current user.
 DarkFeatures getDarkFeatures(com.atlassian.user.User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDarkFeaturesManager

public DefaultDarkFeaturesManager(UserAccessor userAccessor,
                                  com.atlassian.bandana.BandanaManager bandanaManager)
Method Detail

getDarkFeatures

public DarkFeatures getDarkFeatures()
Returns the dark features for the current user.

Specified by:
getDarkFeatures in interface DarkFeaturesManager
Returns:
the dark features for the current user.

getDarkFeatures

public DarkFeatures getDarkFeatures(com.atlassian.user.User user)
Specified by:
getDarkFeatures in interface DarkFeaturesManager
Returns:
the dark features for the given user.

enableUserFeature

public void enableUserFeature(String featureKey)
Specified by:
enableUserFeature in interface DarkFeaturesManager

disableUserFeature

public void disableUserFeature(String featureKey)
Specified by:
disableUserFeature in interface DarkFeaturesManager

enableSiteFeature

public void enableSiteFeature(String featureKey)
Specified by:
enableSiteFeature in interface DarkFeaturesManager

disableSiteFeature

public void disableSiteFeature(String featureKey)
Specified by:
disableSiteFeature in interface DarkFeaturesManager


Copyright © 2003-2013 Atlassian. All Rights Reserved.