public class

CssSubstitutionWebResourceTransformer

extends Object
implements DimensionAwareWebResourceTransformerFactory
java.lang.Object
   ↳ com.atlassian.jira.web.util.CssSubstitutionWebResourceTransformer

Class Overview

A resource transform that makes variable substitutions based on L&F settings.

Variables are prefixed with @. Variables will be:

  • Of the form @[a-zA-Z][a-zA-Z0-9_]* (e.g. alphanumeric and underscores and starts with an alpha).
  • Any @FOO token found that doesn't correspond to a known variable will be left as-is.
  • @TextHeadingColour, @MenuBackgroundColour, etc.
  • Copies of all the above with any leading hash # removed e.g. @TextHeadingColourNoHash, @MenuBackgroundColourNoHash
  • @ContextPath. This will either be the empty string, or a string that starts with a slash and never ends in a slash.

Summary

Nested Classes
class CssSubstitutionWebResourceTransformer.VariableMap  
Constants
String LOOKNFEEL_VERSION_QUERY_PARAM
Public Constructors
CssSubstitutionWebResourceTransformer(ApplicationProperties applicationProperties, WebResourceIntegration webResourceIntegration)
Public Methods
Dimensions computeDimensions()
UrlReadingWebResourceTransformer makeResourceTransformer(TransformerParameters parameters)
DimensionAwareTransformerUrlBuilder makeUrlBuilder(TransformerParameters parameters)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.webresource.transformer.WebResourceTransformerFactory
From interface com.atlassian.webresource.api.prebake.DimensionAwareWebResourceTransformerFactory

Constants

public static final String LOOKNFEEL_VERSION_QUERY_PARAM

Constant Value: "looknfeel_version"

Public Constructors

public CssSubstitutionWebResourceTransformer (ApplicationProperties applicationProperties, WebResourceIntegration webResourceIntegration)

Public Methods

public Dimensions computeDimensions ()

public UrlReadingWebResourceTransformer makeResourceTransformer (TransformerParameters parameters)

public DimensionAwareTransformerUrlBuilder makeUrlBuilder (TransformerParameters parameters)