Class BuildNumberCondition
- java.lang.Object
-
- com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
-
- com.atlassian.confluence.plugin.descriptor.web.conditions.BuildNumberCondition
-
- All Implemented Interfaces:
com.atlassian.plugin.web.baseconditions.BaseCondition
,com.atlassian.plugin.web.Condition
public class BuildNumberCondition extends BaseConfluenceCondition
Displays the web-item if the Confluence build number is between theminBuildNumber
andmaxBuildNumber
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:
- 3.0
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
CONTEXT_KEY_HELPER
-
-
Constructor Summary
Constructors Constructor Description BuildNumberCondition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(Map<String,String> params)
void
setBootstrapManager(BootstrapManager bootstrapManager)
void
setBuildNumberRangeChecker(BuildNumberRangeChecker buildNumberRangeChecker)
protected boolean
shouldDisplay(WebInterfaceContext context)
-
Methods inherited from class com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
shouldDisplay
-
-
-
-
Method Detail
-
init
public void init(Map<String,String> params)
- Specified by:
init
in interfacecom.atlassian.plugin.web.Condition
- Overrides:
init
in classBaseConfluenceCondition
-
shouldDisplay
protected boolean shouldDisplay(WebInterfaceContext context)
- Specified by:
shouldDisplay
in classBaseConfluenceCondition
-
setBootstrapManager
public void setBootstrapManager(BootstrapManager bootstrapManager)
-
setBuildNumberRangeChecker
public void setBuildNumberRangeChecker(BuildNumberRangeChecker buildNumberRangeChecker)
-
-