@Component public class AttachmentSiteLogoManager extends Object implements SiteLogoManager
Modifier and Type | Field and Description |
---|---|
static int |
MAX_LOGO_HEIGHT
The maximum height logo we will serve, in pixels.
|
Constructor and Description |
---|
AttachmentSiteLogoManager(SettingsManager settingsManager,
ContextPathHolder contextPathHolder,
FileUploadManager fileUploadManager,
AttachmentManager attachmentManager,
com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider,
com.atlassian.event.api.EventPublisher eventPublisher,
ImageScaler imageScaler) |
Modifier and Type | Method and Description |
---|---|
SiteLogo |
getCurrent() |
String |
getSiteLogoUrl() |
void |
resetToDefault() |
void |
uploadLogo(File logo,
String fileType)
Uploads and saves custom site logo.
|
boolean |
useCustomLogo() |
public static final int MAX_LOGO_HEIGHT
@Autowired public AttachmentSiteLogoManager(SettingsManager settingsManager, ContextPathHolder contextPathHolder, FileUploadManager fileUploadManager, AttachmentManager attachmentManager, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider, com.atlassian.event.api.EventPublisher eventPublisher, ImageScaler imageScaler)
public void uploadLogo(File logo, String fileType)
SiteLogoManager
uploadLogo
in interface SiteLogoManager
logo
- custom logo filefileType
- file typepublic String getSiteLogoUrl()
getSiteLogoUrl
in interface SiteLogoManager
public SiteLogo getCurrent()
getCurrent
in interface SiteLogoManager
public void resetToDefault()
resetToDefault
in interface SiteLogoManager
public boolean useCustomLogo()
useCustomLogo
in interface SiteLogoManager
Copyright © 2003–2019 Atlassian. All rights reserved.