Class UrlReadingConditionElementParser

java.lang.Object
com.atlassian.plugin.web.baseconditions.AbstractConditionElementParser<DecoratingCondition>
com.atlassian.plugin.webresource.condition.UrlReadingConditionElementParser

public class UrlReadingConditionElementParser extends com.atlassian.plugin.web.baseconditions.AbstractConditionElementParser<DecoratingCondition>
Implementation of AbstractConditionElementParser for UrlReadingCondition.

The "class" attribute may represent a UrlReadingCondition or a legacy Condition. We offered "class2" for migration purposes, to avoid changing behaviour we still check that first. However, if "class" is provided and it doesn't implement UrlReadingCondition we refuse to load the module to bring this to the engineer's attention

Since:
v3.0
  • Constructor Details

    • UrlReadingConditionElementParser

      public UrlReadingConditionElementParser(com.atlassian.plugin.hostcontainer.HostContainer hostContainer)
  • Method Details

    • makeConditionImplementation

      protected DecoratingCondition makeConditionImplementation(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) throws com.atlassian.plugin.PluginParseException
      Specified by:
      makeConditionImplementation in class com.atlassian.plugin.web.baseconditions.AbstractConditionElementParser<DecoratingCondition>
      Throws:
      com.atlassian.plugin.PluginParseException
    • invert

      protected DecoratingCondition invert(DecoratingCondition condition)
      Specified by:
      invert in class com.atlassian.plugin.web.baseconditions.AbstractConditionElementParser<DecoratingCondition>
    • createAndCompositeCondition

      protected com.atlassian.plugin.web.baseconditions.CompositeCondition<DecoratingCondition> createAndCompositeCondition()
      Specified by:
      createAndCompositeCondition in class com.atlassian.plugin.web.baseconditions.AbstractConditionElementParser<DecoratingCondition>
    • createOrCompositeCondition

      protected com.atlassian.plugin.web.baseconditions.CompositeCondition<DecoratingCondition> createOrCompositeCondition()
      Specified by:
      createOrCompositeCondition in class com.atlassian.plugin.web.baseconditions.AbstractConditionElementParser<DecoratingCondition>