com.atlassian.confluence.setup.settings
Interface DarkFeaturesManager

All Known Implementing Classes:
DefaultDarkFeaturesManager

public interface DarkFeaturesManager

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


Method Summary
 void disableSiteFeature(java.lang.String featureKey)
           
 void disableUserFeature(ConfluenceUser user, java.lang.String featureKey)
          Disable the specified feature for the specified User
 void disableUserFeature(java.lang.String featureKey)
           
 void enableSiteFeature(java.lang.String featureKey)
           
 void enableUserFeature(ConfluenceUser user, java.lang.String featureKey)
          Enable the specified feature for the specified User
 void enableUserFeature(java.lang.String featureKey)
           
 DarkFeatures getDarkFeatures()
           
 DarkFeatures getDarkFeatures(ConfluenceUser user)
           
 DarkFeatures getDarkFeatures(com.atlassian.user.User user)
          Deprecated. Since 5.2 - Use getDarkFeatures(com.atlassian.confluence.user.ConfluenceUser)
 DarkFeatures getDarkFeaturesAllUsers()
           
 DarkFeatures getSiteDarkFeatures()
           
 

Method Detail

getDarkFeatures

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

getDarkFeatures

DarkFeatures getDarkFeatures(ConfluenceUser user)
Returns:
the dark features for the given user.
Since:
5.2

getDarkFeatures

@Deprecated
DarkFeatures getDarkFeatures(com.atlassian.user.User user)
Deprecated. Since 5.2 - Use getDarkFeatures(com.atlassian.confluence.user.ConfluenceUser)


getSiteDarkFeatures

DarkFeatures getSiteDarkFeatures()
Returns:
the dark features that are set for the instance

enableUserFeature

void enableUserFeature(java.lang.String featureKey)
                       throws UnknownFeatureException
Throws:
UnknownFeatureException

enableUserFeature

void enableUserFeature(ConfluenceUser user,
                       java.lang.String featureKey)
                       throws UnknownFeatureException
Enable the specified feature for the specified User

Throws:
UnknownFeatureException

disableUserFeature

void disableUserFeature(java.lang.String featureKey)
                        throws UnknownFeatureException
Throws:
UnknownFeatureException

disableUserFeature

void disableUserFeature(ConfluenceUser user,
                        java.lang.String featureKey)
                        throws UnknownFeatureException
Disable the specified feature for the specified User

Throws:
UnknownFeatureException

enableSiteFeature

void enableSiteFeature(java.lang.String featureKey)
                       throws UnknownFeatureException
Throws:
UnknownFeatureException

disableSiteFeature

void disableSiteFeature(java.lang.String featureKey)
                        throws UnknownFeatureException
Throws:
UnknownFeatureException

getDarkFeaturesAllUsers

DarkFeatures getDarkFeaturesAllUsers()
Returns:
the dark features enabled for all users.


Copyright © 2003-2013 Atlassian. All Rights Reserved.