com.atlassian.confluence.plugin.descriptor.web.urlreadingconditions
Class BuildNumberUrlReadingCondition

java.lang.Object
  extended by com.atlassian.confluence.plugin.descriptor.web.urlreadingconditions.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

Constructor Summary
BuildNumberUrlReadingCondition(BootstrapManager bootstrapManager, BuildNumberRangeChecker buildNumberRangeChecker)
           
 
Method Summary
 void addToUrl(com.atlassian.plugin.webresource.url.UrlBuilder urlBuilder)
           
 void init(Map<String,String> params)
           
 boolean shouldDisplay(com.atlassian.plugin.webresource.QueryParams params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildNumberUrlReadingCondition

public BuildNumberUrlReadingCondition(BootstrapManager bootstrapManager,
                                      BuildNumberRangeChecker buildNumberRangeChecker)
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


Copyright © 2003–2015 Atlassian. All rights reserved.