com.atlassian.jira.config.properties
Class LookAndFeelBean

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

public class LookAndFeelBean
extends java.lang.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).


Nested Class Summary
static class LookAndFeelBean.DefaultColours
          These are the "intended" colours for the JIRA Header.
 
Method Summary
 java.lang.String getApplicationID()
           
 java.lang.String getDefaultBackedString(java.lang.String key, java.lang.String defaultValue)
          Performs a lookup on the application properties for the specified key.
 java.lang.String getGadgetChromeColor(java.lang.String id)
           
static LookAndFeelBean getInstance(ApplicationProperties ap)
           
 java.lang.String getLogoHeight()
           
 java.lang.String getLogoUrl()
           
 java.lang.String getLogoWidth()
           
 java.lang.String getMenuBackgroundColour()
           
 java.lang.String getMenuSeparatorColour()
           
 java.lang.String getMenuTxtColour()
           
 java.lang.String getTextActiveLinkColour()
           
 java.lang.String getTextHeadingColour()
           
 java.lang.String getTextLinkColour()
           
 java.lang.String getTopBackgroundColour()
           
 java.lang.String getTopHighlightColor()
           
 java.lang.String getTopSeparatorBackgroundColor()
           
 java.lang.String getTopTextHighlightColor()
           
 java.lang.String getTopTxtColour()
           
 long getVersion()
           
 void setGadgetChromeColor(java.lang.String id, java.lang.String gadgetChromeColor)
           
 void setLogoHeight(java.lang.String logoHeight)
           
 void setLogoUrl(java.lang.String logoUrl)
           
 void setLogoWidth(java.lang.String logoWidth)
           
 void setMenuBackgroundColour(java.lang.String menuBackgroundColour)
           
 void setMenuSeparatorColour(java.lang.String menuSeparatorColour)
           
 void setMenuTxtColour(java.lang.String menuTxtColour)
           
 void setTextActiveLinkColour(java.lang.String textActiveLinkColour)
           
 void setTextHeadingColour(java.lang.String textHeadingColour)
           
 void setTextLinkColour(java.lang.String textLinkColour)
           
 void setTopBackgroundColour(java.lang.String topBackgroundColour)
           
 void setTopHighlightColor(java.lang.String newValue)
           
 void setTopSeparatorBackgroundColor(java.lang.String newValue)
           
 void setTopTextHighlightColor(java.lang.String newValue)
           
 void setTopTxtColour(java.lang.String topTxtColour)
           
 java.lang.String stripHash(java.lang.String colour)
           
 void updateVersion(long oldVersion)
          Convenience method used by data import (see JRA-11680) to update version number to the greater version number after the import (to make sure LF values wont be cached).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LookAndFeelBean getInstance(ApplicationProperties ap)

stripHash

public java.lang.String stripHash(java.lang.String colour)

updateVersion

public void updateVersion(long oldVersion)
Convenience method used by data import (see JRA-11680) to update version number to the greater version number after the import (to make sure LF values wont be cached).

Parameters:
oldVersion - the previous version

getVersion

public long getVersion()

getLogoUrl

public java.lang.String getLogoUrl()

setLogoUrl

public void setLogoUrl(java.lang.String logoUrl)

getLogoWidth

public java.lang.String getLogoWidth()

setLogoWidth

public void setLogoWidth(java.lang.String logoWidth)

getLogoHeight

public java.lang.String getLogoHeight()

setLogoHeight

public void setLogoHeight(java.lang.String logoHeight)

getTopBackgroundColour

public java.lang.String getTopBackgroundColour()

setTopBackgroundColour

public void setTopBackgroundColour(java.lang.String topBackgroundColour)

getTopTxtColour

public java.lang.String getTopTxtColour()

setTopTxtColour

public void setTopTxtColour(java.lang.String topTxtColour)

getTopHighlightColor

public java.lang.String getTopHighlightColor()

setTopHighlightColor

public void setTopHighlightColor(java.lang.String newValue)

getTopTextHighlightColor

public java.lang.String getTopTextHighlightColor()

setTopTextHighlightColor

public void setTopTextHighlightColor(java.lang.String newValue)

getTopSeparatorBackgroundColor

public java.lang.String getTopSeparatorBackgroundColor()

setTopSeparatorBackgroundColor

public void setTopSeparatorBackgroundColor(java.lang.String newValue)

getMenuTxtColour

public java.lang.String getMenuTxtColour()

setMenuTxtColour

public void setMenuTxtColour(java.lang.String menuTxtColour)

getMenuBackgroundColour

public java.lang.String getMenuBackgroundColour()

setMenuBackgroundColour

public void setMenuBackgroundColour(java.lang.String menuBackgroundColour)

getMenuSeparatorColour

public java.lang.String getMenuSeparatorColour()

setMenuSeparatorColour

public void setMenuSeparatorColour(java.lang.String menuSeparatorColour)

getTextHeadingColour

public java.lang.String getTextHeadingColour()

setTextHeadingColour

public void setTextHeadingColour(java.lang.String textHeadingColour)

getTextLinkColour

public java.lang.String getTextLinkColour()

setTextLinkColour

public void setTextLinkColour(java.lang.String textLinkColour)

getTextActiveLinkColour

public java.lang.String getTextActiveLinkColour()

setTextActiveLinkColour

public void setTextActiveLinkColour(java.lang.String textActiveLinkColour)

getGadgetChromeColor

public java.lang.String getGadgetChromeColor(java.lang.String id)

setGadgetChromeColor

public void setGadgetChromeColor(java.lang.String id,
                                 java.lang.String gadgetChromeColor)

getApplicationID

public java.lang.String getApplicationID()

getDefaultBackedString

public java.lang.String getDefaultBackedString(java.lang.String key,
                                               java.lang.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


Copyright © 2002-2011 Atlassian. All Rights Reserved.