Interface UrlReadingCondition
- All Known Implementing Classes:
AbstractBooleanUrlReadingCondition
public interface UrlReadingCondition
Condition that contributes to the URL.
UrlReadingConditions are included in batches. When an HTML page is served, the UrlReadingCondition is asked to
contribute to the URL in addToUrl(UrlBuilder). At resource serve time,
the condition evaluates whether it should display based on the querystring.
- Since:
- 6.3.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddToUrl(UrlBuilder urlBuilder) Called when constructing the URL as the hosting HTML page is being served.voidCalled after creation and autowiring.booleanshouldDisplay(QueryParams params) Determine whether the web fragment should be displayed.
-
Method Details
-
init
Called after creation and autowiring.- Parameters:
params- The optional map of parameters specified in XML.- Throws:
com.atlassian.plugin.PluginParseException
-
addToUrl
Called when constructing the URL as the hosting HTML page is being served. Can add parameters to the query string and alter the resource hash.- Parameters:
urlBuilder- interface for contributing to the URL
-
shouldDisplay
Determine whether the web fragment should be displayed. This method should only read values from its config and the query params.- Parameters:
params- query params- Returns:
- true if the user should see the fragment, false otherwise
-