com.atlassian.jira.lookandfeel.upload
Class LogoUploader

java.lang.Object
  extended by com.atlassian.jira.lookandfeel.upload.LogoUploader

public class LogoUploader
extends Object

Uploads logo to well known location Also scales and stores scaled copy If a favicon also stores hires and lores scales

Since:
v4.4

Constructor Summary
LogoUploader(ApplicationProperties applicationProperties, JiraHome jiraHome, ImageScaler imageScaler, I18nHelper i18nHelper, UploadService uploadService)
           
 
Method Summary
 List<String> getErrorMessages()
           
 int getResizedHeight()
           
 int getResizedWidth()
           
 Dimension saveDefaultFavicOn(BufferedImage image, String originalFilename, String scaledFilename)
           
 Dimension saveDefaultLogo(BufferedImage image, String originalFilename, String scaledFilename)
           
 void saveDefaultLogo(URL url, String originalFilename, String scaledFilename)
           
 String saveFavicon(InputStream imageData, String originalFilename, String hiResFilename, String scaledFilename, String ieFaviconFilename)
           
 String saveLogo(InputStream imageData, String originalFilename, String rescaledFilename)
           
 boolean validate(ImageDescriptor imageDescriptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogoUploader

public LogoUploader(ApplicationProperties applicationProperties,
                    JiraHome jiraHome,
                    ImageScaler imageScaler,
                    I18nHelper i18nHelper,
                    UploadService uploadService)
Method Detail

saveLogo

public String saveLogo(InputStream imageData,
                       String originalFilename,
                       String rescaledFilename)

saveFavicon

public String saveFavicon(InputStream imageData,
                          String originalFilename,
                          String hiResFilename,
                          String scaledFilename,
                          String ieFaviconFilename)

saveDefaultLogo

public void saveDefaultLogo(URL url,
                            String originalFilename,
                            String scaledFilename)

saveDefaultLogo

public Dimension saveDefaultLogo(BufferedImage image,
                                 String originalFilename,
                                 String scaledFilename)

saveDefaultFavicOn

public Dimension saveDefaultFavicOn(BufferedImage image,
                                    String originalFilename,
                                    String scaledFilename)

getResizedWidth

public int getResizedWidth()

getResizedHeight

public int getResizedHeight()

validate

public boolean validate(ImageDescriptor imageDescriptor)

getErrorMessages

public List<String> getErrorMessages()


Copyright © 2002-2011 Atlassian. All Rights Reserved.