@Component public class

TemporaryAvatarHelper

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

Summary

Public Constructors
@Inject TemporaryAvatarHelper(TemporaryAvatarUploader avatarUploader, AttachmentHelper attachmentHelper, TemporaryAvatars temporaryAvatars, VelocityRequestContextFactory requestContextFactory, UniversalAvatarsService avatars, CroppingAvatarImageDataProviderFactory croppingAvatarImageDataProviderFactory, I18nHelper i18nHelper)
Public Methods
Avatar convertTemporaryToReal(ApplicationUser remoteUser, String ownerId, Avatar.Type type, Selection selection)
AvatarBean createAvatarFromTemporary(ApplicationUser remoteUser, Avatar.Type type, String ownerId, AvatarCroppingBean croppingInstructions)
String getTemporaryAvatarUrl()
Response storeTemporaryAvatar(ApplicationUser remoteUser, Avatar.Type type, String ownerId, Avatar.Size targetSize, FilePart filePart, HttpServletRequest request)
Response storeTemporaryAvatar(ApplicationUser remoteUser, Avatar.Type type, String ownerId, Avatar.Size targetSize, String filename, Long size, HttpServletRequest request)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

@Inject public TemporaryAvatarHelper (TemporaryAvatarUploader avatarUploader, AttachmentHelper attachmentHelper, TemporaryAvatars temporaryAvatars, VelocityRequestContextFactory requestContextFactory, UniversalAvatarsService avatars, CroppingAvatarImageDataProviderFactory croppingAvatarImageDataProviderFactory, I18nHelper i18nHelper)

Public Methods

public Avatar convertTemporaryToReal (ApplicationUser remoteUser, String ownerId, Avatar.Type type, Selection selection)

public AvatarBean createAvatarFromTemporary (ApplicationUser remoteUser, Avatar.Type type, String ownerId, AvatarCroppingBean croppingInstructions)

public String getTemporaryAvatarUrl ()

public Response storeTemporaryAvatar (ApplicationUser remoteUser, Avatar.Type type, String ownerId, Avatar.Size targetSize, FilePart filePart, HttpServletRequest request)

public Response storeTemporaryAvatar (ApplicationUser remoteUser, Avatar.Type type, String ownerId, Avatar.Size targetSize, String filename, Long size, HttpServletRequest request)