public class

AvatarResource

extends Object
java.lang.Object
   ↳ com.atlassian.jira.rest.v2.issue.AvatarResource

Summary

Public Constructors
AvatarResource(JiraAuthenticationContext authContext, AvatarManager avatarManager, AvatarPickerHelper avatarPickerHelper, AttachmentHelper attachmentHelper, UserManager userManager, JiraAvatarSupport jiraAvatarSupport)
Public Methods
Response createAvatarFromTemporary(String type, AvatarCroppingBean croppingInstructions)
Updates the cropping instructions of the temporary avatar.
Response getAllSystemAvatars(String type)
Returns all system avatars of the given type.
Response storeTemporaryAvatar(String type, String filename, Long size, HttpServletRequest request)
Creates temporary avatar
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AvatarResource (JiraAuthenticationContext authContext, AvatarManager avatarManager, AvatarPickerHelper avatarPickerHelper, AttachmentHelper attachmentHelper, UserManager userManager, JiraAvatarSupport jiraAvatarSupport)

Public Methods

public Response createAvatarFromTemporary (String type, AvatarCroppingBean croppingInstructions)

Updates the cropping instructions of the temporary avatar.

Parameters
type the avatar type
croppingInstructions cropping instructions

public Response getAllSystemAvatars (String type)

Returns all system avatars of the given type.

Parameters
type the avatar type
Returns
  • all system avatars of the given type.

public Response storeTemporaryAvatar (String type, String filename, Long size, HttpServletRequest request)

Creates temporary avatar

Parameters
type the avatar type
filename name of file being uploaded
size size of file
request servlet request
Returns
  • temporary avatar cropping instructions