Class DecoratingAndCompositeCondition
java.lang.Object
com.atlassian.plugin.webresource.condition.DecoratingAndCompositeCondition
- All Implemented Interfaces:
com.atlassian.plugin.web.api.baseconditions.BaseCondition,com.atlassian.plugin.web.api.baseconditions.CompositeCondition<DecoratingCondition>,com.atlassian.plugin.web.baseconditions.BaseCondition,com.atlassian.plugin.web.baseconditions.CompositeCondition<DecoratingCondition>,DecoratingCondition
Implementation of DecoratingCompositeCondition that fits the new UrlReadingCondition interface.
- Since:
- v3.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCondition(DecoratingCondition condition) voidaddToUrl(UrlBuilder urlBuilder, UrlBuildingStrategy urlBuilderStrategy) Called when constructing the URL as the hosting HTML page is being served.booleanshouldDisplay(QueryParams params) Determine whether the web fragment should be displayed.
-
Field Details
-
conditions
-
-
Constructor Details
-
DecoratingAndCompositeCondition
public DecoratingAndCompositeCondition()
-
-
Method Details
-
shouldDisplay
Description copied from interface:DecoratingConditionDetermine 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
-
invertCondition
- Returns:
- a version of this condition with inverted boolean logic.
-
addCondition
- Specified by:
addConditionin interfacecom.atlassian.plugin.web.api.baseconditions.CompositeCondition<DecoratingCondition>
-
addToUrl
Description copied from interface:DecoratingConditionCalled when constructing the URL as the hosting HTML page is being served. Can add parameters to the query string and alter the resource hash.- Specified by:
addToUrlin interfaceDecoratingCondition- Parameters:
urlBuilder- interface for contributing to the URL
-
getConditions
-