Package com.atlassian.jira.lookandfeel
Class LookAndFeelPropertiesImpl
java.lang.Object
com.atlassian.jira.lookandfeel.LookAndFeelPropertiesImpl
- All Implemented Interfaces:
LookAndFeelProperties
-
Constructor Summary
ConstructorsConstructorDescriptionLookAndFeelPropertiesImpl(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory, ApplicationProperties applicationProperties, UploadService uploadService) -
Method Summary
Modifier and TypeMethodDescriptionbooleanURL to the default logo for display in the Linvalid input: '&F' configuration section.Get the default favicon URL of this JIRA instance.Get the default favicon URL of this JIRA instance.Get the default logo URL of this JIRA instance.intbooleanWhether the site title should be shown next to the logo.booleanbooleanbooleanvoidreset()Reset all Linvalid input: '&F' properties to defaults.voidResets the logo set for the dark theme to the original one shipped with Jira.voidReset the default favicon to the original logo shipped with JIRA.voidInternal method, don't usevoidReset the default logo to the original logo shipped with Jira.voidInternal method, don't usevoidsetApplicationTitleShownOnLogoTo(boolean shouldShow) Configures whether JIRA shows the application title next to the logo.voidsetBlackArrow(boolean blackArrow) voidsetCustomizeColors(boolean value) voidsetDefaultFavicon(String url, String width, String height) Set 'custom' default favicon for this JIRA instance.voidsetDefaultFavicon(String url, String hiresUrl, String width, String height) Set 'custom' default favicon for this JIRA instance.voidsetDefaultLogo(String url, String width, String height) Set 'custom' default logo for this JIRA instance.voidsetFaviconChoice(LogoChoice choice) voidsetLogoChoice(LogoChoice choice) voidAs of future versions, JIRA will no longer support dynamic adding of default favicons and logos.voiduploadDefaultLogo(BufferedImage image) As of future versions, JIRA will no longer support dynamic adding of default favicons and logos.
-
Constructor Details
-
LookAndFeelPropertiesImpl
public LookAndFeelPropertiesImpl(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory, ApplicationProperties applicationProperties, UploadService uploadService)
-
-
Method Details
-
setCustomizeColors
public void setCustomizeColors(boolean value) - Specified by:
setCustomizeColorsin interfaceLookAndFeelProperties
-
getCustomizeColors
public boolean getCustomizeColors()- Specified by:
getCustomizeColorsin interfaceLookAndFeelProperties
-
setLogoChoice
- Specified by:
setLogoChoicein interfaceLookAndFeelProperties
-
getLogoChoice
- Specified by:
getLogoChoicein interfaceLookAndFeelProperties
-
setFaviconChoice
- Specified by:
setFaviconChoicein interfaceLookAndFeelProperties
-
getFaviconChoice
- Specified by:
getFaviconChoicein interfaceLookAndFeelProperties
-
reset
public void reset()Description copied from interface:LookAndFeelPropertiesReset all Linvalid input: '&F' properties to defaults.- Specified by:
resetin interfaceLookAndFeelProperties
-
uploadDefaultLogo
Description copied from interface:LookAndFeelPropertiesAs of future versions, JIRA will no longer support dynamic adding of default favicons and logos. Plugins that wish to modify default logo should add the logo as a web resource and use #LookAndFeelProperties.setDefaultLogo(String, String, String)instead. Note that JIRA already provides ability to upload custom logos and favicons in its Administration section.- Specified by:
uploadDefaultLogoin interfaceLookAndFeelProperties- Parameters:
image- image to upload
-
setDefaultLogo
Description copied from interface:LookAndFeelPropertiesSet 'custom' default logo for this JIRA instance. It will be used as the 'Default' option for logo in the Look invalid input: '&' Feel JIRA settings.- Specified by:
setDefaultLogoin interfaceLookAndFeelProperties- Parameters:
url- URL of the logowidth- width of the logoheight- height of the logo
-
resetDefaultLogo
public void resetDefaultLogo()Description copied from interface:LookAndFeelPropertiesReset the default logo to the original logo shipped with Jira.- Specified by:
resetDefaultLogoin interfaceLookAndFeelProperties
-
resetDarkThemeLogo
public void resetDarkThemeLogo()Description copied from interface:LookAndFeelPropertiesResets the logo set for the dark theme to the original one shipped with Jira.- Specified by:
resetDarkThemeLogoin interfaceLookAndFeelProperties
-
uploadDefaultFavicon
Description copied from interface:LookAndFeelPropertiesAs of future versions, JIRA will no longer support dynamic adding of default favicons and logos. Plugins that wish to modify default favicon should add the favicon as a web resource and use #LookAndFeelProperties.setDefaultFavicon(String, String, String)instead. Note that JIRA already provides ability to upload custom logos and favicons in its Administration section.- Specified by:
uploadDefaultFaviconin interfaceLookAndFeelProperties- Parameters:
image- image to upload
-
setDefaultFavicon
Description copied from interface:LookAndFeelPropertiesSet 'custom' default favicon for this JIRA instance. It will be used as the 'Default' option for the favicon in the Look invalid input: '&' Feel JIRA settings.- Specified by:
setDefaultFaviconin interfaceLookAndFeelProperties- Parameters:
url- URL of the faviconwidth- width of the faviconheight- height of the favicon
-
setDefaultFavicon
Description copied from interface:LookAndFeelPropertiesSet 'custom' default favicon for this JIRA instance. It will be used as the 'Default' option for the favicon in the Look invalid input: '&' Feel JIRA settings.- Specified by:
setDefaultFaviconin interfaceLookAndFeelProperties- Parameters:
url- URL of the faviconhiresUrl- URL of the favicon in high resolution for display in Linvalid input: '&F' adminwidth- width of the faviconheight- height of the favicon
-
resetDefaultFavicon
public void resetDefaultFavicon()Description copied from interface:LookAndFeelPropertiesReset the default favicon to the original logo shipped with JIRA.- Specified by:
resetDefaultFaviconin interfaceLookAndFeelProperties
-
isUsingCustomDefaultLogo
public boolean isUsingCustomDefaultLogo()- Specified by:
isUsingCustomDefaultLogoin interfaceLookAndFeelProperties
-
isUsingCustomDefaultFavicon
public boolean isUsingCustomDefaultFavicon()- Specified by:
isUsingCustomDefaultFaviconin interfaceLookAndFeelProperties
-
getDefaultCssLogoUrl
Description copied from interface:LookAndFeelPropertiesURL to the default logo for display in the Linvalid input: '&F' configuration section.- Specified by:
getDefaultCssLogoUrlin interfaceLookAndFeelProperties- Returns:
- current default logo URL
-
getDefaultLogoUrl
Description copied from interface:LookAndFeelPropertiesGet the default logo URL of this JIRA instance. This is not necessarily the logo currently served.- Specified by:
getDefaultLogoUrlin interfaceLookAndFeelProperties- Returns:
- default logo URL
-
getDefaultFaviconUrl
Description copied from interface:LookAndFeelPropertiesGet the default favicon URL of this JIRA instance. This is not necessarily the favicon currently served.- Specified by:
getDefaultFaviconUrlin interfaceLookAndFeelProperties- Returns:
- default favicon URL
-
getDefaultFaviconHiresUrl
Description copied from interface:LookAndFeelPropertiesGet the default favicon URL of this JIRA instance. This is not necessarily the favicon currently served. This is URL to the favicon in high resolution, for display in Linvalid input: '&F' administration.- Specified by:
getDefaultFaviconHiresUrlin interfaceLookAndFeelProperties- Returns:
- default favicon URL
-
setBlackArrow
public void setBlackArrow(boolean blackArrow) - Specified by:
setBlackArrowin interfaceLookAndFeelProperties
-
isBlackArrow
public boolean isBlackArrow()- Specified by:
isBlackArrowin interfaceLookAndFeelProperties
-
resetDefaultFaviconUrl
public void resetDefaultFaviconUrl()Description copied from interface:LookAndFeelPropertiesInternal method, don't use- Specified by:
resetDefaultFaviconUrlin interfaceLookAndFeelProperties
-
resetDefaultLogoUrl
public void resetDefaultLogoUrl()Description copied from interface:LookAndFeelPropertiesInternal method, don't use- Specified by:
resetDefaultLogoUrlin interfaceLookAndFeelProperties
-
isApplicationTitleShownOnLogo
public boolean isApplicationTitleShownOnLogo()Description copied from interface:LookAndFeelPropertiesWhether the site title should be shown next to the logo.- Specified by:
isApplicationTitleShownOnLogoin interfaceLookAndFeelProperties- Returns:
- true if the site title should be shown next the logo; otherwise, false.
-
setApplicationTitleShownOnLogoTo
public void setApplicationTitleShownOnLogoTo(boolean shouldShow) Description copied from interface:LookAndFeelPropertiesConfigures whether JIRA shows the application title next to the logo.- Specified by:
setApplicationTitleShownOnLogoToin interfaceLookAndFeelProperties- Parameters:
shouldShow- true if JIRA should show the application title next to the logo.
-
getMaxLogoHeight
public int getMaxLogoHeight()- Specified by:
getMaxLogoHeightin interfaceLookAndFeelProperties
-