|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.rest.v2.issue.AvatarResourceHelper
public class AvatarResourceHelper
A helper resource for Project and User avatars.
Constructor Summary | |
---|---|
AvatarResourceHelper(JiraAuthenticationContext authContext,
AvatarManager avatarManager,
AvatarPickerHelper avatarPickerHelper,
AttachmentHelper attachmentHelper)
|
Method Summary | |
---|---|
javax.ws.rs.core.Response |
createAvatarFromTemporary(Avatar.Type type,
String ownerId,
AvatarCroppingBean croppingInstructions)
Converts temporary avatar into a real avatar |
javax.ws.rs.core.Response |
deleteAvatar(Long id)
Deletes avatar |
javax.ws.rs.core.Response |
getAllAvatars(Avatar.Type type,
String ownerId,
Long selectedAvatarId)
Returns all avatars which are visible for the currently logged in user. |
javax.ws.rs.core.Response |
storeTemporaryAvatar(Avatar.Type type,
String ownerId,
String filename,
Long size,
javax.servlet.http.HttpServletRequest request)
Creates temporary avatar and provides instructions for cropping (if needed) |
javax.ws.rs.core.Response |
storeTemporaryAvatarUsingMultiPart(Avatar.Type type,
String ownerId,
com.atlassian.plugins.rest.common.multipart.FilePart filePart,
javax.servlet.http.HttpServletRequest request)
Creates temporary avatar using multipart. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AvatarResourceHelper(JiraAuthenticationContext authContext, AvatarManager avatarManager, AvatarPickerHelper avatarPickerHelper, AttachmentHelper attachmentHelper)
Method Detail |
---|
public javax.ws.rs.core.Response getAllAvatars(Avatar.Type type, String ownerId, Long selectedAvatarId)
type
- - Type of avatars (User or Project)ownerId
- - (project id or username)selectedAvatarId
- - id of selected avatar
public javax.ws.rs.core.Response createAvatarFromTemporary(Avatar.Type type, String ownerId, AvatarCroppingBean croppingInstructions)
type
- - Type of avatars (User or Project)ownerId
- - (project id or username)croppingInstructions
- - Corrdinates to crop image
public javax.ws.rs.core.Response storeTemporaryAvatar(Avatar.Type type, String ownerId, String filename, Long size, javax.servlet.http.HttpServletRequest request)
type
- - Type of avatars (User or Project)ownerId
- - (project id or username)filename
- - name of file being uploadedsize
- - size of filerequest
- - servlet request
public javax.ws.rs.core.Response storeTemporaryAvatarUsingMultiPart(Avatar.Type type, String ownerId, com.atlassian.plugins.rest.common.multipart.FilePart filePart, javax.servlet.http.HttpServletRequest request)
type
- - Type of avatars (User or Project)ownerId
- - (project id or username)filePart
- - File bodyrequest
- - servlet request
public javax.ws.rs.core.Response deleteAvatar(Long id)
id
- database id for avatar
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |