Class BuildNumberUrlReadingCondition

  • All Implemented Interfaces:
    com.atlassian.plugin.web.baseconditions.BaseCondition, com.atlassian.plugin.webresource.condition.UrlReadingCondition

    public class BuildNumberUrlReadingCondition
    extends Object
    implements com.atlassian.plugin.webresource.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
    • Method Detail

      • init

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

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

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