com.atlassian.confluence.plugins.lookandfeel
Class AttachmentSiteLogoManager

java.lang.Object
  extended by com.atlassian.confluence.plugins.lookandfeel.AttachmentSiteLogoManager
All Implemented Interfaces:
SiteLogoManager

public class AttachmentSiteLogoManager
extends java.lang.Object
implements SiteLogoManager


Field Summary
static int MAX_LOGO_HEIGHT
          The maximum height logo we will serve, in pixels.
 
Constructor Summary
AttachmentSiteLogoManager(SettingsManager settingsManager, ContextPathHolder contextPathHolder, FileUploadManager fileUploadManager, AttachmentManager attachmentManager, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider, com.atlassian.event.api.EventPublisher eventPublisher, ImageScaler imageScaler)
           
 
Method Summary
 SiteLogo getCurrent()
           
 java.lang.String getSiteLogoUrl()
           
 void resetToDefault()
           
 void uploadLogo(java.io.File logo, java.lang.String fileType)
          Uploads and saves custom site logo.
 boolean useCustomLogo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

uploadLogo

public void uploadLogo(java.io.File logo,
                       java.lang.String fileType)
                throws java.io.IOException
Description copied from interface: SiteLogoManager
Uploads and saves custom site logo.

Specified by:
uploadLogo in interface SiteLogoManager
Parameters:
logo - custom logo file
fileType - file type
Throws:
java.io.IOException - if resizing logo fails

getSiteLogoUrl

public java.lang.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-2014 Atlassian. All Rights Reserved.