|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FeatureManager
Component responsible for providing information whether certain features in JIRA are enabled or disabled.
| 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. |
| Method Detail |
|---|
boolean isEnabled(String featureKey)
featureKey - feature key
true, if feature identified by featureKey is enabled, false otherwiseboolean isEnabled(CoreFeatures coreFeature)
coreFeature - core feature instance
true, if given core feature is enabled, false otherwiseSet<String> getEnabledFeatureKeys()
DarkFeatures getDarkFeatures()
DarkFeatures instances from the PropertySet associated with the ThreadLocal user.
void enableUserDarkFeature(com.atlassian.crowd.embedded.api.User user,
String feature)
user - the user to enable the feature forfeature - the feature to enable
void disableUserDarkFeature(com.atlassian.crowd.embedded.api.User user,
String feature)
void enableSiteDarkFeature(String feature)
void disableSiteDarkFeature(String feature)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||