Class LookAndFeelBean

java.lang.Object
com.atlassian.jira.config.properties.LookAndFeelBean

public class LookAndFeelBean extends Object
Bean mainly used to maintain a version number for all the menu colours. This allows us to cache this information until it is updated (i.e.:version number is incremented).
  • Method Details

    • getInstance

      @Deprecated public static LookAndFeelBean getInstance(ApplicationProperties ap)
    • getInstance

      @Deprecated public static LookAndFeelBean getInstance(ApplicationProperties ap, LnFDefaultColorProvider lnFDefaultColorProvider)
    • getInstance

      public static LookAndFeelBean getInstance(ApplicationProperties ap, LnFDefaultColorProvider lnFDefaultColorProvider, LogoProvider logoProvider)
    • isCommonHeader

      @Deprecated public boolean isCommonHeader()
      Deprecated.
      in Jira 6.0 -- the common header is always enabled.
      Returns:
      true
    • stripHash

      @Deprecated public String stripHash(String colour)
      Deprecated.
      Since v7.0
      Parameters:
      colour -
      Returns:
    • updateSettingsHash

      @Nonnull @Deprecated public String updateSettingsHash()
      Deprecated.
    • getSettingsHash

      @Nonnull public String getSettingsHash()
      Deprecated.
    • getConfigurationState

      @Nonnull public String getConfigurationState()
    • getLogoUrl

      public String getLogoUrl()
    • setLogoUrl

      public void setLogoUrl(String logoUrl)
    • getAbsoluteLogoUrl

      public String getAbsoluteLogoUrl()
    • getLogoWidth

      public String getLogoWidth()
    • setLogoWidth

      public void setLogoWidth(String logoWidth)
    • getLogoPixelWidth

      public String getLogoPixelWidth()
    • getLogoHeight

      public String getLogoHeight()
    • setLogoHeight

      public void setLogoHeight(String logoHeight)
    • getLogoPixelHeight

      public String getLogoPixelHeight()
    • getFaviconUrl

      public String getFaviconUrl()
    • setFaviconUrl

      public void setFaviconUrl(String faviconUrl)
    • getFaviconWidth

      public String getFaviconWidth()
    • getFaviconHeight

      public String getFaviconHeight()
    • getFaviconHiResUrl

      public String getFaviconHiResUrl()
    • setFaviconHiResUrl

      public void setFaviconHiResUrl(String faviconUrl)
    • getFaviconHiResWidth

      public String getFaviconHiResWidth()
    • getFaviconHiResHeight

      public String getFaviconHiResHeight()
    • getTopBackgroundColour

      public String getTopBackgroundColour()
    • setTopBackgroundColour

      public void setTopBackgroundColour(String topBackgroundColour)
    • getTopTxtColour

      public String getTopTxtColour()
    • setTopTxtColour

      public void setTopTxtColour(String topTxtColour)
    • getTopHighlightColor

      public String getTopHighlightColor()
    • setTopHighlightColor

      public void setTopHighlightColor(String newValue)
    • getValue

      @Nullable protected String getValue(@Nonnull com.atlassian.jira.config.properties.LookAndFeelBean.LnF config)
    • getTopTextHighlightColor

      public String getTopTextHighlightColor()
    • setTopTextHighlightColor

      public void setTopTextHighlightColor(String newValue)
    • getTopSeparatorBackgroundColor

      public String getTopSeparatorBackgroundColor()
    • setTopSeparatorBackgroundColor

      public void setTopSeparatorBackgroundColor(String newValue)
    • getMenuTxtColour

      public String getMenuTxtColour()
    • setMenuTxtColour

      public void setMenuTxtColour(String menuTxtColour)
    • getMenuBackgroundColour

      public String getMenuBackgroundColour()
    • setMenuBackgroundColour

      public void setMenuBackgroundColour(String menuBackgroundColour)
    • getMenuSeparatorColour

      public String getMenuSeparatorColour()
    • setMenuSeparatorColour

      public void setMenuSeparatorColour(String menuSeparatorColour)
    • getTextHeadingColour

      public String getTextHeadingColour()
    • setTextHeadingColour

      public void setTextHeadingColour(String textHeadingColour)
    • getTextLinkColour

      public String getTextLinkColour()
    • setTextLinkColour

      public void setTextLinkColour(String textLinkColour)
    • getTextActiveLinkColour

      public String getTextActiveLinkColour()
    • setTextActiveLinkColour

      public void setTextActiveLinkColour(String textActiveLinkColour)
    • getHeroButtonTextColour

      public String getHeroButtonTextColour()
    • setHeroButtonTextColour

      public void setHeroButtonTextColour(String heroButtonTextColour)
    • getHeroButtonBaseBGColour

      public String getHeroButtonBaseBGColour()
    • setHeroButtonBaseBGColour

      public void setHeroButtonBaseBGColour(String heroButtonBaseBGColour)
    • getGadgetChromeColor

      public String getGadgetChromeColor(String id)
    • setGadgetChromeColor

      public void setGadgetChromeColor(String id, String gadgetChromeColor)
    • getApplicationID

      public String getApplicationID()
    • getDefaultBackedString

      public String getDefaultBackedString(@Nonnull String key, @Nullable String defaultValue)
      Performs a lookup on the application properties for the specified key. If the key returns a null value, returns the default value specified. This would happen if no value exists in the database AND no value exists in the jira-application.properties file.
      Parameters:
      key - the Application Properties key to look up
      defaultValue - the value to return if the key yields null
      Returns:
      the value of the key in the Application Properties, or the default value specified
    • getDefaultBackedString

      public String getDefaultBackedString(@Nonnull String key)