public abstract class AbstractFisheyeCondition
extends java.lang.Object
implements com.atlassian.plugin.web.Condition
| Constructor and Description |
|---|
AbstractFisheyeCondition() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
getParams()
Get a Map of the parameters provided to the condition.
|
protected java.lang.String |
getRequiredParam(java.lang.String name)
Get a named parameter, throwing an exception if it is not set.
|
void |
init(java.util.Map<java.lang.String,java.lang.String> params) |
protected abstract boolean |
shouldDisplay(Helper context)
Subclasses must implement this method and return a boolean indicating whether to display the item.
|
boolean |
shouldDisplay(java.util.Map context) |
public final void init(java.util.Map<java.lang.String,java.lang.String> params)
throws com.atlassian.plugin.PluginParseException
init in interface com.atlassian.plugin.web.Conditioncom.atlassian.plugin.PluginParseExceptionpublic final boolean shouldDisplay(java.util.Map context)
shouldDisplay in interface com.atlassian.plugin.web.Conditionprotected final java.util.Map<java.lang.String,java.lang.String> getParams()
@NotNull protected final java.lang.String getRequiredParam(java.lang.String name)
name - a String naming the parameterprotected abstract boolean shouldDisplay(Helper context)
context - a Helper containing the context in which the web-item would be shown