public class AvatarResource extends Object
Constructor and Description |
---|
AvatarResource(AvatarResourceHelper avatarResourceHelper,
JiraAuthenticationContext authContext,
com.atlassian.event.api.EventPublisher eventPublisher,
AccessDisablingHelper accessDisablingHelper) |
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,
String requestedWith)
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(AvatarResourceHelper avatarResourceHelper, JiraAuthenticationContext authContext, com.atlassian.event.api.EventPublisher eventPublisher, AccessDisablingHelper accessDisablingHelper)
public javax.ws.rs.core.Response getAllSystemAvatars(String type, @HeaderParam(value="X-Requested-With") String requestedWith)
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-2022 Atlassian. All Rights Reserved.