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 Summary
ConstructorsConstructorDescriptionBuildNumberUrlReadingCondition
(BootstrapManager bootstrapManager, BuildNumberRangeChecker buildNumberRangeChecker) -
Method Summary
-
Constructor Details
-
BuildNumberUrlReadingCondition
public BuildNumberUrlReadingCondition(BootstrapManager bootstrapManager, BuildNumberRangeChecker buildNumberRangeChecker)
-
-
Method Details
-
init
- Specified by:
init
in interfacecom.atlassian.webresource.spi.condition.UrlReadingCondition
-
addToUrl
public void addToUrl(com.atlassian.webresource.api.url.UrlBuilder urlBuilder) - Specified by:
addToUrl
in interfacecom.atlassian.webresource.spi.condition.UrlReadingCondition
-
shouldDisplay
public boolean shouldDisplay(com.atlassian.webresource.api.QueryParams params) - Specified by:
shouldDisplay
in interfacecom.atlassian.webresource.spi.condition.UrlReadingCondition
-