Class FeatureEnabledCondition

java.lang.Object
com.atlassian.jira.plugin.webfragment.conditions.FeatureEnabledCondition
All Implemented Interfaces:
com.atlassian.plugin.web.api.baseconditions.BaseCondition, com.atlassian.plugin.web.Condition

@ExperimentalApi public class FeatureEnabledCondition extends Object implements com.atlassian.plugin.web.Condition
An extension of Condition which helps to decide whether a web section or web item should be displayed. DO NOT USE THIS CONDITION ON A WEB RESOURCE - Because we lose performance gains if a web resources can't be cached as part of a batch. Basically it just slows things down a lot for web resource loading.
Since:
7.1
  • Constructor Details

    • FeatureEnabledCondition

      public FeatureEnabledCondition(FeatureManager featureManager)
  • Method Details

    • 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> params)
      Specified by:
      shouldDisplay in interface com.atlassian.plugin.web.Condition