com.atlassian.bamboo.plugins.web.conditions
Class NonFinalVersionCondition
java.lang.Object
com.atlassian.bamboo.plugins.web.conditions.NonFinalVersionCondition
- All Implemented Interfaces:
- com.atlassian.plugin.web.Condition
public class NonFinalVersionCondition
- extends java.lang.Object
- implements com.atlassian.plugin.web.Condition
Prevents display of web content for final Bamboo versions.
Non final versions are detected by checking for presence of
- SNAPSHOT
- i
- beta
- rc
- m
in the version string.
Method Summary |
void |
init(java.util.Map<java.lang.String,java.lang.String> params)
|
boolean |
shouldDisplay(java.util.Map<java.lang.String,java.lang.Object> context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NonFinalVersionCondition
public NonFinalVersionCondition()
init
public void init(java.util.Map<java.lang.String,java.lang.String> params)
throws com.atlassian.plugin.PluginParseException
- Specified by:
init
in interface com.atlassian.plugin.web.Condition
- Throws:
com.atlassian.plugin.PluginParseException
shouldDisplay
public boolean shouldDisplay(java.util.Map<java.lang.String,java.lang.Object> context)
- Specified by:
shouldDisplay
in interface com.atlassian.plugin.web.Condition
Copyright © 2011 Atlassian. All Rights Reserved.