com.atlassian.confluence.plugin.descriptor.web.conditions
Class BuildNumberCondition

java.lang.Object
  extended by com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
      extended by 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 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:
3.0

Field Summary
 
Fields inherited from class com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
CONTEXT_KEY_HELPER
 
Constructor Summary
BuildNumberCondition()
           
 
Method Summary
 void init(java.util.Map<java.lang.String,java.lang.String> params)
          Initialises the condition with any parameters from the plugin configuration.
 void setBootstrapManager(BootstrapManager bootstrapManager)
           
protected  boolean shouldDisplay(WebInterfaceContext context)
           
 
Methods inherited from class com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
shouldDisplay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildNumberCondition

public BuildNumberCondition()
Method Detail

init

public void init(java.util.Map<java.lang.String,java.lang.String> params)
          throws com.atlassian.plugin.PluginParseException
Initialises the condition with any parameters from the plugin configuration. The following params are valid for this condition:

Specified by:
init in interface com.atlassian.plugin.web.Condition
Overrides:
init in class BaseConfluenceCondition
Throws:
com.atlassian.plugin.PluginParseException

shouldDisplay

protected boolean shouldDisplay(WebInterfaceContext context)
Specified by:
shouldDisplay in class BaseConfluenceCondition

setBootstrapManager

public void setBootstrapManager(BootstrapManager bootstrapManager)


Copyright © 2003-2013 Atlassian. All Rights Reserved.