com.atlassian.confluence.plugins.lookandfeel
Class AttachmentSiteLogoManager
java.lang.Object
com.atlassian.confluence.plugins.lookandfeel.AttachmentSiteLogoManager
- All Implemented Interfaces:
- SiteLogoManager
public class AttachmentSiteLogoManager
- extends Object
- implements SiteLogoManager
Field Summary |
static int |
MAX_LOGO_HEIGHT
The maximum height logo we will serve, in pixels. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_LOGO_HEIGHT
public static final int MAX_LOGO_HEIGHT
- The maximum height logo we will serve, in pixels. This is scaled to double the expected resolution, for high dpi displays.
- See Also:
- Constant Field Values
AttachmentSiteLogoManager
public AttachmentSiteLogoManager(SettingsManager settingsManager,
ContextPathHolder contextPathHolder,
FileUploadManager fileUploadManager,
AttachmentManager attachmentManager,
com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider,
com.atlassian.event.api.EventPublisher eventPublisher,
ImageScaler imageScaler)
uploadLogo
public void uploadLogo(File logo,
String fileType)
throws IOException
- Description copied from interface:
SiteLogoManager
- Uploads and saves custom site logo.
- Specified by:
uploadLogo
in interface SiteLogoManager
- Parameters:
logo
- custom logo filefileType
- file type
- Throws:
IOException
- if resizing logo fails
getSiteLogoUrl
public String getSiteLogoUrl()
- Specified by:
getSiteLogoUrl
in interface SiteLogoManager
getCurrent
public SiteLogo getCurrent()
- Specified by:
getCurrent
in interface SiteLogoManager
resetToDefault
public void resetToDefault()
- Specified by:
resetToDefault
in interface SiteLogoManager
useCustomLogo
public boolean useCustomLogo()
- Specified by:
useCustomLogo
in interface SiteLogoManager
Copyright © 2003-2013 Atlassian. All Rights Reserved.