Class 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 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 interface com.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 interface com.atlassian.plugin.webresource.condition.UrlReadingCondition
      • shouldDisplay

        public boolean shouldDisplay​(com.atlassian.plugin.webresource.QueryParams params)
        Specified by:
        shouldDisplay in interface com.atlassian.plugin.webresource.condition.UrlReadingCondition
      • computeDimensions

        public com.atlassian.webresource.api.prebake.Dimensions computeDimensions()
        Specified by:
        computeDimensions in interface com.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 interface com.atlassian.webresource.api.prebake.DimensionAwareUrlReadingCondition