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
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) throws IOException
SiteLogoManager
uploadLogo
in interface SiteLogoManager
logo
- custom logo filefileType
- file typeIOException
- if resizing logo failspublic 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–2016 Atlassian. All rights reserved.