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 LookAndFeelProperties
public boolean getCustomizeColors()
getCustomizeColors
in interface LookAndFeelProperties
public void setLogoChoice(LogoChoice choice)
setLogoChoice
in interface LookAndFeelProperties
public LogoChoice getLogoChoice()
getLogoChoice
in interface LookAndFeelProperties
public void setFaviconChoice(LogoChoice choice)
setFaviconChoice
in interface LookAndFeelProperties
public LogoChoice getFaviconChoice()
getFaviconChoice
in interface LookAndFeelProperties
public void reset()
LookAndFeelProperties
reset
in interface LookAndFeelProperties
public void uploadDefaultLogo(BufferedImage image)
LookAndFeelProperties
LookAndFeelProperties.setDefaultLogo(String, String, String)
instead. Note that JIRA already provides ability to
upload custom logos and favicons in its Administration section.uploadDefaultLogo
in interface LookAndFeelProperties
image
- image to uploadpublic void setDefaultLogo(String url, String width, String height)
LookAndFeelProperties
setDefaultLogo
in interface LookAndFeelProperties
url
- URL of the logowidth
- width of the logoheight
- height of the logopublic void resetDefaultLogo()
LookAndFeelProperties
resetDefaultLogo
in interface LookAndFeelProperties
public void uploadDefaultFavicon(BufferedImage image)
LookAndFeelProperties
LookAndFeelProperties.setDefaultFavicon(String, String, String)
instead. Note that JIRA already provides ability to
upload custom logos and favicons in its Administration section.uploadDefaultFavicon
in interface LookAndFeelProperties
image
- image to uploadpublic void setDefaultFavicon(String url, String width, String height)
LookAndFeelProperties
setDefaultFavicon
in interface LookAndFeelProperties
url
- URL of the faviconwidth
- width of the faviconheight
- height of the faviconpublic void setDefaultFavicon(String url, String hiresUrl, String width, String height)
LookAndFeelProperties
setDefaultFavicon
in interface LookAndFeelProperties
url
- 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()
LookAndFeelProperties
resetDefaultFavicon
in interface LookAndFeelProperties
public boolean isUsingCustomDefaultLogo()
isUsingCustomDefaultLogo
in interface LookAndFeelProperties
public boolean isUsingCustomDefaultFavicon()
isUsingCustomDefaultFavicon
in interface LookAndFeelProperties
public String getDefaultCssLogoUrl()
LookAndFeelProperties
getDefaultCssLogoUrl
in interface LookAndFeelProperties
public String getDefaultLogoUrl()
LookAndFeelProperties
getDefaultLogoUrl
in interface LookAndFeelProperties
public String getDefaultFaviconUrl()
LookAndFeelProperties
getDefaultFaviconUrl
in interface LookAndFeelProperties
public String getDefaultFaviconHiresUrl()
LookAndFeelProperties
getDefaultFaviconHiresUrl
in interface LookAndFeelProperties
public void setBlackArrow(boolean blackArrow)
setBlackArrow
in interface LookAndFeelProperties
public boolean isBlackArrow()
isBlackArrow
in interface LookAndFeelProperties
public void resetDefaultFaviconUrl()
LookAndFeelProperties
resetDefaultFaviconUrl
in interface LookAndFeelProperties
public void resetDefaultLogoUrl()
LookAndFeelProperties
resetDefaultLogoUrl
in interface LookAndFeelProperties
public boolean isApplicationTitleShownOnLogo()
LookAndFeelProperties
isApplicationTitleShownOnLogo
in interface LookAndFeelProperties
public void setApplicationTitleShownOnLogoTo(boolean shouldShow)
LookAndFeelProperties
setApplicationTitleShownOnLogoTo
in interface LookAndFeelProperties
shouldShow
- true if JIRA should show the application title next to the logo.public int getMaxLogoHeight()
getMaxLogoHeight
in interface LookAndFeelProperties
Copyright © 2002-2019 Atlassian. All Rights Reserved.