Class AttachmentSiteLogoManager
- java.lang.Object
-
- com.atlassian.confluence.plugins.lookandfeel.AttachmentSiteLogoManager
-
- All Implemented Interfaces:
SiteLogoManager
@Component public class AttachmentSiteLogoManager extends Object implements SiteLogoManager
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_LOGO_HEIGHT
The maximum height logo we will serve, in pixels.
-
Constructor Summary
Constructors Constructor Description AttachmentSiteLogoManager(GlobalDescriptionManager globalDescriptionManager, ContextPathHolder contextPathHolder, FileUploadManager fileUploadManager, AttachmentManager attachmentManager, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.cache.CacheManager cacheManager, ImageScaler imageScaler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SiteLogo
getCurrent()
String
getSiteLogoUrl()
void
resetToDefault()
void
uploadLogo(File logo, String fileType)
Uploads and saves custom site logo.boolean
useCustomLogo()
-
-
-
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
@Autowired public AttachmentSiteLogoManager(GlobalDescriptionManager globalDescriptionManager, ContextPathHolder contextPathHolder, FileUploadManager fileUploadManager, AttachmentManager attachmentManager, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.cache.CacheManager cacheManager, ImageScaler imageScaler)
-
-
Method Detail
-
uploadLogo
public void uploadLogo(File logo, String fileType)
Description copied from interface:SiteLogoManager
Uploads and saves custom site logo.- Specified by:
uploadLogo
in interfaceSiteLogoManager
- Parameters:
logo
- custom logo filefileType
- file type
-
getSiteLogoUrl
public String getSiteLogoUrl()
- Specified by:
getSiteLogoUrl
in interfaceSiteLogoManager
-
getCurrent
public SiteLogo getCurrent()
- Specified by:
getCurrent
in interfaceSiteLogoManager
-
resetToDefault
public void resetToDefault()
- Specified by:
resetToDefault
in interfaceSiteLogoManager
-
useCustomLogo
public boolean useCustomLogo()
- Specified by:
useCustomLogo
in interfaceSiteLogoManager
-
-