public class IsApplicationVersionCondition extends Object implements com.atlassian.plugin.web.Condition
Two parameters are required:
operator
param defines the operation to use.version
param defines the version to check against.
Valid operator
s are:
eq
- Displays if the Stash version is equal to the version
paramneq
- Displays if the Stash version is not equal to the version
paramgt
- Displays if the Stash version is greater than the version
paramgte
- Displays if the Stash version is greater than or equal to the version
paramlt
- Displays if the Stash version is less than the version
paramlte
- Displays if the Stash version is less than or equal to the version
paramThe following example will show the web fragment if Stash version 2.4 or beyond (2.4.1, 2.5, etc) is running:
<condition class="com.atlassian.bitbucket.web.conditions.IsApplicationVersionCondition">
<param name="operator">gte</param>
<param name="version">2.4</param>
</condition>
Constructor and Description |
---|
IsApplicationVersionCondition(com.atlassian.bitbucket.server.ApplicationPropertiesService applicationPropertiesService) |
Modifier and Type | Method and Description |
---|---|
void |
init(Map<String,String> params) |
boolean |
shouldDisplay(Map<String,Object> context) |
public IsApplicationVersionCondition(com.atlassian.bitbucket.server.ApplicationPropertiesService applicationPropertiesService)
Copyright © 2021 Atlassian. All rights reserved.