Class DarkFeatureEnabledUrlReadingCondition
- java.lang.Object
-
- com.atlassian.confluence.plugin.descriptor.web.urlreadingconditions.DarkFeatureEnabledUrlReadingCondition
-
- All Implemented Interfaces:
com.atlassian.plugin.web.baseconditions.BaseCondition
,com.atlassian.plugin.webresource.condition.UrlReadingCondition
,com.atlassian.webresource.api.prebake.DimensionAwareUrlReadingCondition
public class DarkFeatureEnabledUrlReadingCondition extends Object implements com.atlassian.webresource.api.prebake.DimensionAwareUrlReadingCondition
Loads a web resource based on a dark feature being enabled- Since:
- 5.6
-
-
Constructor Summary
Constructors Constructor Description DarkFeatureEnabledUrlReadingCondition(DarkFeaturesManager darkFeaturesManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToUrl(com.atlassian.plugin.webresource.url.UrlBuilder urlBuilder)
void
addToUrl(com.atlassian.plugin.webresource.url.UrlBuilder urlBuilder, com.atlassian.webresource.api.prebake.Coordinate coordinate)
com.atlassian.webresource.api.prebake.Dimensions
computeDimensions()
void
init(Map<String,String> params)
boolean
shouldDisplay(com.atlassian.plugin.webresource.QueryParams params)
-
-
-
Constructor Detail
-
DarkFeatureEnabledUrlReadingCondition
public DarkFeatureEnabledUrlReadingCondition(DarkFeaturesManager darkFeaturesManager)
-
-
Method Detail
-
init
public void init(Map<String,String> params) throws com.atlassian.plugin.PluginParseException
- Specified by:
init
in interfacecom.atlassian.plugin.webresource.condition.UrlReadingCondition
- Throws:
com.atlassian.plugin.PluginParseException
-
addToUrl
public void addToUrl(com.atlassian.plugin.webresource.url.UrlBuilder urlBuilder)
- Specified by:
addToUrl
in interfacecom.atlassian.plugin.webresource.condition.UrlReadingCondition
-
shouldDisplay
public boolean shouldDisplay(com.atlassian.plugin.webresource.QueryParams params)
- Specified by:
shouldDisplay
in interfacecom.atlassian.plugin.webresource.condition.UrlReadingCondition
-
computeDimensions
public com.atlassian.webresource.api.prebake.Dimensions computeDimensions()
- Specified by:
computeDimensions
in interfacecom.atlassian.webresource.api.prebake.DimensionAwareUrlReadingCondition
-
addToUrl
public void addToUrl(com.atlassian.plugin.webresource.url.UrlBuilder urlBuilder, com.atlassian.webresource.api.prebake.Coordinate coordinate)
- Specified by:
addToUrl
in interfacecom.atlassian.webresource.api.prebake.DimensionAwareUrlReadingCondition
-
-