@Component public class TemporaryAvatarUploader extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_SIDE_LENGTH
Fits the popup window.
|
Constructor and Description |
---|
TemporaryAvatarUploader(I18nHelper i18nHelper,
ApplicationProperties applicationProperties,
FileUtil fileUtil,
com.atlassian.jira.rest.v2.avatar.ImageFileOperations imageFileOperations) |
Modifier and Type | Method and Description |
---|---|
UploadedAvatar |
createUploadedAvatarFromStream(InputStream inputStream,
String filename,
String contentType) |
UploadedAvatar |
createUploadedAvatarFromStream(InputStream stream,
String fileName,
String contentType,
long size) |
public static final int MAX_SIDE_LENGTH
@Inject public TemporaryAvatarUploader(I18nHelper i18nHelper, ApplicationProperties applicationProperties, FileUtil fileUtil, com.atlassian.jira.rest.v2.avatar.ImageFileOperations imageFileOperations)
public UploadedAvatar createUploadedAvatarFromStream(InputStream stream, String fileName, String contentType, long size) throws IOException, ValidationException
IOException
ValidationException
public UploadedAvatar createUploadedAvatarFromStream(InputStream inputStream, String filename, String contentType) throws IOException, ValidationException
IOException
ValidationException
Copyright © 2002-2015 Atlassian. All Rights Reserved.