public class LookAndFeelPropertiesImpl extends Object implements LookAndFeelProperties
| Constructor and Description |
|---|
LookAndFeelPropertiesImpl(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory,
ApplicationProperties applicationProperties,
UploadService uploadService) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCustomizeColors() |
String |
getDefaultCssLogoUrl()
URL to the default logo for display in the L&F configuration section.
|
String |
getDefaultFaviconHiresUrl()
Get the default favicon URL of this JIRA instance.
|
String |
getDefaultFaviconUrl()
Get the default favicon URL of this JIRA instance.
|
String |
getDefaultLogoUrl()
Get the default logo URL of this JIRA instance.
|
LogoChoice |
getFaviconChoice() |
LogoChoice |
getLogoChoice() |
int |
getMaxLogoHeight() |
boolean |
isApplicationTitleShownOnLogo()
Whether the site title should be shown next to the logo.
|
boolean |
isBlackArrow() |
boolean |
isUsingCustomDefaultFavicon() |
boolean |
isUsingCustomDefaultLogo() |
void |
reset()
Reset all L&F properties to defaults.
|
void |
resetDefaultFavicon()
Reset the default favicon to the original logo shipped with JIRA.
|
void |
resetDefaultFaviconUrl()
Internal method, don't use
|
void |
resetDefaultLogo()
Reset the default logo to the original logo shipped with JIRA.
|
void |
resetDefaultLogoUrl()
Internal method, don't use
|
void |
setApplicationTitleShownOnLogoTo(boolean shouldShow)
Configures whether JIRA shows the application title next to the logo.
|
void |
setBlackArrow(boolean blackArrow) |
void |
setCustomizeColors(boolean value) |
void |
setDefaultFavicon(String url,
String width,
String height)
Set 'custom' default favicon for this JIRA instance.
|
void |
setDefaultFavicon(String url,
String hiresUrl,
String width,
String height)
Set 'custom' default favicon for this JIRA instance.
|
void |
setDefaultLogo(String url,
String width,
String height)
Set 'custom' default logo for this JIRA instance.
|
void |
setFaviconChoice(LogoChoice choice) |
void |
setLogoChoice(LogoChoice choice) |
void |
uploadDefaultFavicon(BufferedImage image)
As of future versions, JIRA will no longer support dynamic adding of default favicons and logos.
|
void |
uploadDefaultLogo(BufferedImage image)
As of future versions, JIRA will no longer support dynamic adding of default favicons and logos.
|
public LookAndFeelPropertiesImpl(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory,
ApplicationProperties applicationProperties,
UploadService uploadService)
public void setCustomizeColors(boolean value)
setCustomizeColors in interface LookAndFeelPropertiespublic boolean getCustomizeColors()
getCustomizeColors in interface LookAndFeelPropertiespublic void setLogoChoice(LogoChoice choice)
setLogoChoice in interface LookAndFeelPropertiespublic LogoChoice getLogoChoice()
getLogoChoice in interface LookAndFeelPropertiespublic void setFaviconChoice(LogoChoice choice)
setFaviconChoice in interface LookAndFeelPropertiespublic LogoChoice getFaviconChoice()
getFaviconChoice in interface LookAndFeelPropertiespublic void reset()
LookAndFeelPropertiesreset in interface LookAndFeelPropertiespublic void uploadDefaultLogo(BufferedImage image)
LookAndFeelPropertiesLookAndFeelProperties.setDefaultLogo(String, String, String) instead. Note that JIRA already provides ability to
upload custom logos and favicons in its Administration section.uploadDefaultLogo in interface LookAndFeelPropertiesimage - image to uploadpublic void setDefaultLogo(String url, String width, String height)
LookAndFeelPropertiessetDefaultLogo in interface LookAndFeelPropertiesurl - URL of the logowidth - width of the logoheight - height of the logopublic void resetDefaultLogo()
LookAndFeelPropertiesresetDefaultLogo in interface LookAndFeelPropertiespublic void uploadDefaultFavicon(BufferedImage image)
LookAndFeelPropertiesLookAndFeelProperties.setDefaultFavicon(String, String, String) instead. Note that JIRA already provides ability to
upload custom logos and favicons in its Administration section.uploadDefaultFavicon in interface LookAndFeelPropertiesimage - image to uploadpublic void setDefaultFavicon(String url, String width, String height)
LookAndFeelPropertiessetDefaultFavicon in interface LookAndFeelPropertiesurl - URL of the faviconwidth - width of the faviconheight - height of the faviconpublic void setDefaultFavicon(String url, String hiresUrl, String width, String height)
LookAndFeelPropertiessetDefaultFavicon in interface LookAndFeelPropertiesurl - URL of the faviconhiresUrl - URL of the favicon in high resolution for display in L&F adminwidth - width of the faviconheight - height of the faviconpublic void resetDefaultFavicon()
LookAndFeelPropertiesresetDefaultFavicon in interface LookAndFeelPropertiespublic boolean isUsingCustomDefaultLogo()
isUsingCustomDefaultLogo in interface LookAndFeelPropertiespublic boolean isUsingCustomDefaultFavicon()
isUsingCustomDefaultFavicon in interface LookAndFeelPropertiespublic String getDefaultCssLogoUrl()
LookAndFeelPropertiesgetDefaultCssLogoUrl in interface LookAndFeelPropertiespublic String getDefaultLogoUrl()
LookAndFeelPropertiesgetDefaultLogoUrl in interface LookAndFeelPropertiespublic String getDefaultFaviconUrl()
LookAndFeelPropertiesgetDefaultFaviconUrl in interface LookAndFeelPropertiespublic String getDefaultFaviconHiresUrl()
LookAndFeelPropertiesgetDefaultFaviconHiresUrl in interface LookAndFeelPropertiespublic void setBlackArrow(boolean blackArrow)
setBlackArrow in interface LookAndFeelPropertiespublic boolean isBlackArrow()
isBlackArrow in interface LookAndFeelPropertiespublic void resetDefaultFaviconUrl()
LookAndFeelPropertiesresetDefaultFaviconUrl in interface LookAndFeelPropertiespublic void resetDefaultLogoUrl()
LookAndFeelPropertiesresetDefaultLogoUrl in interface LookAndFeelPropertiespublic boolean isApplicationTitleShownOnLogo()
LookAndFeelPropertiesisApplicationTitleShownOnLogo in interface LookAndFeelPropertiespublic void setApplicationTitleShownOnLogoTo(boolean shouldShow)
LookAndFeelPropertiessetApplicationTitleShownOnLogoTo in interface LookAndFeelPropertiesshouldShow - true if JIRA should show the application title next to the logo.public int getMaxLogoHeight()
getMaxLogoHeight in interface LookAndFeelPropertiesCopyright © 2002-2018 Atlassian. All Rights Reserved.