com.atlassian.jira.plugin.webfragment.conditions
Class IsFeatureEnabledCondition
java.lang.Object
com.atlassian.jira.plugin.webfragment.conditions.IsFeatureEnabledCondition
- All Implemented Interfaces:
- com.atlassian.plugin.web.baseconditions.BaseCondition, com.atlassian.plugin.web.Condition
public class IsFeatureEnabledCondition
- extends Object
- implements com.atlassian.plugin.web.Condition
Will allow displaying given fragment if a particular feature is enabled.
The feature must be provided as a parameter to this condition named 'featureKey'.
- Since:
- v4.4
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IsFeatureEnabledCondition
public IsFeatureEnabledCondition(FeatureManager featureManager)
init
public void init(Map<String,String> params)
throws com.atlassian.plugin.PluginParseException
- Specified by:
init
in interface com.atlassian.plugin.web.Condition
- Throws:
com.atlassian.plugin.PluginParseException
shouldDisplay
public boolean shouldDisplay(Map<String,Object> context)
- Specified by:
shouldDisplay
in interface com.atlassian.plugin.web.Condition
Copyright © 2002-2013 Atlassian. All Rights Reserved.