public class BuildNumberCondition extends BaseConfluenceCondition
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.
CONTEXT_KEY_HELPER
Constructor and Description |
---|
BuildNumberCondition() |
Modifier and Type | Method and Description |
---|---|
void |
init(Map<String,String> params) |
void |
setBootstrapManager(BootstrapManager bootstrapManager) |
void |
setBuildNumberRangeChecker(BuildNumberRangeChecker buildNumberRangeChecker) |
protected boolean |
shouldDisplay(WebInterfaceContext context) |
shouldDisplay
public void init(Map<String,String> params)
init
in interface com.atlassian.plugin.web.Condition
init
in class BaseConfluenceCondition
protected boolean shouldDisplay(WebInterfaceContext context)
shouldDisplay
in class BaseConfluenceCondition
public void setBootstrapManager(BootstrapManager bootstrapManager)
public void setBuildNumberRangeChecker(BuildNumberRangeChecker buildNumberRangeChecker)
Copyright © 2003–2017 Atlassian. All rights reserved.