public abstract class SimpleUrlReadingCondition extends Object implements DimensionAwareUrlReadingCondition
DimensionAwareUrlReadingCondition implementations.
Handles encoding a single boolean into the url. The convention here is that if the condition is true, it is added the querystring; if false it is not added to the querystring.
| Constructor and Description |
|---|
SimpleUrlReadingCondition() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToUrl(UrlBuilder urlBuilder)
Called when constructing the URL as the hosting HTML page is being served.
|
void |
addToUrl(UrlBuilder urlBuilder,
Coordinate coord) |
Dimensions |
computeDimensions() |
void |
init(Map<String,String> params)
Called after creation and autowiring.
|
protected abstract boolean |
isConditionTrue() |
protected abstract String |
queryKey() |
boolean |
shouldDisplay(QueryParams params)
Determine whether the web fragment should be displayed.
|
public void init(Map<String,String> params) throws com.atlassian.plugin.PluginParseException
UrlReadingConditioninit in interface UrlReadingConditionparams - The optional map of parameters specified in XML.com.atlassian.plugin.PluginParseExceptionpublic void addToUrl(UrlBuilder urlBuilder)
UrlReadingConditionaddToUrl in interface UrlReadingConditionurlBuilder - interface for contributing to the URLpublic Dimensions computeDimensions()
computeDimensions in interface DimensionAwareUrlReadingConditionpublic void addToUrl(UrlBuilder urlBuilder, Coordinate coord)
addToUrl in interface DimensionAwareUrlReadingConditionpublic boolean shouldDisplay(QueryParams params)
UrlReadingConditionshouldDisplay in interface UrlReadingConditionparams - query paramsprotected abstract boolean isConditionTrue()
protected abstract String queryKey()
Copyright © 2018 Atlassian. All rights reserved.