Class BuildNumberUrlReadingCondition

java.lang.Object
com.atlassian.confluence.plugin.descriptor.web.urlreadingconditions.BuildNumberUrlReadingCondition
All Implemented Interfaces:
com.atlassian.webresource.spi.condition.UrlReadingCondition

public class BuildNumberUrlReadingCondition extends Object implements com.atlassian.webresource.spi.condition.UrlReadingCondition
Displays the web-resource if the Confluence build number is between the minBuildNumber and maxBuildNumber parameter values. You can omit either parameter to have just a minimum or a maximum.

If the Confluence build number is not parseable, like during development, the condition will always return true. If either of the parameters are not parseable, then the condition will fail during initialisation.

Since:
5.6
  • Constructor Details

  • Method Details

    • init

      public void init(Map<String,String> params)
      Specified by:
      init in interface com.atlassian.webresource.spi.condition.UrlReadingCondition
    • addToUrl

      public void addToUrl(com.atlassian.webresource.api.url.UrlBuilder urlBuilder)
      Specified by:
      addToUrl in interface com.atlassian.webresource.spi.condition.UrlReadingCondition
    • shouldDisplay

      public boolean shouldDisplay(com.atlassian.webresource.api.QueryParams params)
      Specified by:
      shouldDisplay in interface com.atlassian.webresource.spi.condition.UrlReadingCondition