public class DecoratingAndCompositeCondition extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<DecoratingCondition> |
conditions |
| Constructor and Description |
|---|
DecoratingAndCompositeCondition() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCondition(DecoratingCondition condition) |
void |
addToUrl(UrlBuilder urlBuilder,
UrlBuildingStrategy urlBuilderStrategy)
Called when constructing the URL as the hosting HTML page is being served.
|
boolean |
canEncodeStateIntoUrl() |
Dimensions |
computeDimensions() |
List<DecoratingCondition> |
getConditions() |
DecoratingCondition |
invertCondition() |
boolean |
shouldDisplay(QueryParams params)
Determine whether the web fragment should be displayed.
|
boolean |
shouldDisplayImmediate(Map<String,Object> context,
UrlBuildingStrategy urlBuilderStrategy)
Calls the legacy condition's wrapped shouldDisplay(Map context) method.
|
protected List<DecoratingCondition> conditions
public boolean shouldDisplay(QueryParams params)
DecoratingConditionparams - query paramspublic boolean shouldDisplayImmediate(Map<String,Object> context, UrlBuildingStrategy urlBuilderStrategy)
DecoratingConditionDecoratingCondition.canEncodeStateIntoUrl() returns true, this should never be called.context - passed by conditionspublic DecoratingCondition invertCondition()
public void addCondition(DecoratingCondition condition)
addCondition in interface com.atlassian.plugin.web.baseconditions.CompositeCondition<DecoratingCondition>public void addToUrl(UrlBuilder urlBuilder, UrlBuildingStrategy urlBuilderStrategy)
DecoratingConditionaddToUrl in interface DecoratingConditionurlBuilder - interface for contributing to the URLpublic Dimensions computeDimensions()
computeDimensions in interface DecoratingConditionpublic boolean canEncodeStateIntoUrl()
canEncodeStateIntoUrl in interface DecoratingConditionpublic List<DecoratingCondition> getConditions()
Copyright © 2019 Atlassian. All rights reserved.