public class LogoUploader extends Object
Constructor and Description |
---|
LogoUploader(ApplicationProperties applicationProperties,
JiraHome jiraHome,
ImageScaler imageScaler,
I18nHelper i18nHelper,
UploadService uploadService) |
Modifier and Type | Method and Description |
---|---|
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) |
public LogoUploader(ApplicationProperties applicationProperties, JiraHome jiraHome, ImageScaler imageScaler, I18nHelper i18nHelper, UploadService uploadService)
public String saveLogo(InputStream imageData, String originalFilename, String rescaledFilename)
public String saveFavicon(InputStream imageData, String originalFilename, String hiResFilename, String scaledFilename, String ieFaviconFilename)
public void saveDefaultLogo(URL url, String originalFilename, String scaledFilename)
public Dimension saveDefaultLogo(BufferedImage image, String originalFilename, String scaledFilename)
public Dimension saveDefaultFavicOn(BufferedImage image, String originalFilename, String scaledFilename)
public int getResizedWidth()
public int getResizedHeight()
public boolean validate(ImageDescriptor imageDescriptor)
Copyright © 2002-2019 Atlassian. All Rights Reserved.