|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.config.BootstrapFeatureManager
public class BootstrapFeatureManager
Simple feature manager used during bootstrap. Setup does not use features at all currently.
Constructor Summary | |
---|---|
BootstrapFeatureManager()
|
Method Summary | |
---|---|
void |
disableSiteDarkFeature(String feature)
|
void |
disableUserDarkFeature(com.atlassian.crowd.embedded.api.User user,
String feature)
|
void |
enableSiteDarkFeature(String feature)
|
void |
enableUserDarkFeature(com.atlassian.crowd.embedded.api.User user,
String feature)
Enable a dark feature for a particular User. |
DarkFeatures |
getDarkFeatures()
Creates DarkFeatures instances from the PropertySet associated with the ThreadLocal user. |
Set<String> |
getEnabledFeatureKeys()
Returns a set containing the feature keys of all features that are currently enabled. |
boolean |
isEnabled(CoreFeatures coreFeature)
Checks whether a feature with given coreFeature is enabled in the running JIRA instance. |
boolean |
isEnabled(String featureKey)
Checks whether a feature with given featureKey is enabled in the running JIRA instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BootstrapFeatureManager()
Method Detail |
---|
public boolean isEnabled(String featureKey)
FeatureManager
isEnabled
in interface FeatureManager
featureKey
- feature key
true
, if feature identified by featureKey is enabled, false
otherwisepublic boolean isEnabled(CoreFeatures coreFeature)
FeatureManager
isEnabled
in interface FeatureManager
coreFeature
- core feature instance
true
, if given core feature is enabled, false
otherwisepublic Set<String> getEnabledFeatureKeys()
FeatureManager
getEnabledFeatureKeys
in interface FeatureManager
public DarkFeatures getDarkFeatures()
FeatureManager
DarkFeatures
instances from the PropertySet associated with the ThreadLocal user.
getDarkFeatures
in interface FeatureManager
public void enableUserDarkFeature(com.atlassian.crowd.embedded.api.User user, String feature)
FeatureManager
enableUserDarkFeature
in interface FeatureManager
user
- the user to enable the feature forfeature
- the feature to enablepublic void disableUserDarkFeature(com.atlassian.crowd.embedded.api.User user, String feature)
disableUserDarkFeature
in interface FeatureManager
public void enableSiteDarkFeature(String feature)
enableSiteDarkFeature
in interface FeatureManager
public void disableSiteDarkFeature(String feature)
disableSiteDarkFeature
in interface FeatureManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |