@Component public class

TemporaryAvatarUploader

extends Object
java.lang.Object
   ↳ com.atlassian.jira.rest.v2.avatar.TemporaryAvatarUploader

Class Overview

Creates correct avatar from stream uploaded by user

Summary

Constants
int MAX_SIDE_LENGTH Fits the popup window.
Public Constructors
@Inject TemporaryAvatarUploader(I18nHelper i18nHelper, ApplicationProperties applicationProperties, FileUtil fileUtil, ImageFileOperations imageFileOperations)
Public Methods
UploadedAvatar createUploadedAvatarFromStream(InputStream inputStream, String filename, String contentType)
UploadedAvatar createUploadedAvatarFromStream(InputStream stream, String fileName, String contentType, long size)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int MAX_SIDE_LENGTH

Fits the popup window.

Constant Value: 500 (0x000001f4)

Public Constructors

@Inject public TemporaryAvatarUploader (I18nHelper i18nHelper, ApplicationProperties applicationProperties, FileUtil fileUtil, ImageFileOperations imageFileOperations)

Public Methods

public UploadedAvatar createUploadedAvatarFromStream (InputStream inputStream, String filename, String contentType)

public UploadedAvatar createUploadedAvatarFromStream (InputStream stream, String fileName, String contentType, long size)