public class BuildNumberUrlReadingCondition extends Object implements com.atlassian.plugin.webresource.condition.UrlReadingCondition
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.
Constructor and Description |
---|
BuildNumberUrlReadingCondition(BootstrapManager bootstrapManager,
BuildNumberRangeChecker buildNumberRangeChecker) |
Modifier and Type | Method and Description |
---|---|
void |
addToUrl(com.atlassian.plugin.webresource.url.UrlBuilder urlBuilder) |
void |
init(Map<String,String> params) |
boolean |
shouldDisplay(com.atlassian.plugin.webresource.QueryParams params) |
public BuildNumberUrlReadingCondition(BootstrapManager bootstrapManager, BuildNumberRangeChecker buildNumberRangeChecker)
public void init(Map<String,String> params)
init
in interface com.atlassian.plugin.webresource.condition.UrlReadingCondition
public void addToUrl(com.atlassian.plugin.webresource.url.UrlBuilder urlBuilder)
addToUrl
in interface com.atlassian.plugin.webresource.condition.UrlReadingCondition
public boolean shouldDisplay(com.atlassian.plugin.webresource.QueryParams params)
shouldDisplay
in interface com.atlassian.plugin.webresource.condition.UrlReadingCondition
Copyright © 2003–2017 Atlassian. All rights reserved.