public class AvatarResource extends Object
| Constructor and Description |
|---|
AvatarResource(JiraAuthenticationContext authContext,
AvatarManager avatarManager,
AvatarPickerHelper avatarPickerHelper,
AttachmentHelper attachmentHelper,
UserManager userManager,
JiraAvatarSupport jiraAvatarSupport) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createAvatarFromTemporary(String type,
AvatarCroppingBean croppingInstructions)
Updates the cropping instructions of the temporary avatar.
|
javax.ws.rs.core.Response |
getAllSystemAvatars(String type)
Returns all system avatars of the given type.
|
javax.ws.rs.core.Response |
storeTemporaryAvatar(String type,
String filename,
Long size,
javax.servlet.http.HttpServletRequest request)
Creates temporary avatar
|
public AvatarResource(JiraAuthenticationContext authContext, AvatarManager avatarManager, AvatarPickerHelper avatarPickerHelper, AttachmentHelper attachmentHelper, UserManager userManager, JiraAvatarSupport jiraAvatarSupport)
public javax.ws.rs.core.Response getAllSystemAvatars(String type)
type - the avatar typepublic javax.ws.rs.core.Response storeTemporaryAvatar(String type, String filename, Long size, @Context javax.servlet.http.HttpServletRequest request)
type - the avatar typefilename - name of file being uploadedsize - size of filerequest - servlet requestpublic javax.ws.rs.core.Response createAvatarFromTemporary(String type, AvatarCroppingBean croppingInstructions)
type - the avatar typecroppingInstructions - cropping instructionsCopyright © 2002-2015 Atlassian. All Rights Reserved.