public class UniversalAvatarResource extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CUSTOM_AVATARS_FIELD |
static String |
SYSTEM_AVATARS_FIELD |
Constructor and Description |
---|
UniversalAvatarResource(JiraAuthenticationContext authContext,
AvatarUrls avatarUrls,
AvatarResourceHelper avatarResourceHelper,
TemporaryAvatarHelper avatarTemporaryHelper,
AvatarManager avatarManager,
AvatarImageResolver avatarImageResolver) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createAvatarFromTemporary(String avatarType,
String owningObjectId,
AvatarCroppingBean croppingInstructions) |
javax.ws.rs.core.Response |
deleteAvatar(String avatarType,
String owningObjectId,
Long id)
Deletes avatar
|
javax.ws.rs.core.Response |
getAvatars(String avatarType,
String owningObjectId) |
javax.ws.rs.core.Response |
storeTemporaryAvatar(String avatarType,
String owningObjectId,
String filename,
Long size,
javax.servlet.http.HttpServletRequest request)
Creates temporary avatar
|
javax.ws.rs.core.Response |
storeTemporaryAvatarUsingMultiPart(String avatarType,
String owningObjectId,
com.atlassian.plugins.rest.common.multipart.FilePart filePart,
javax.servlet.http.HttpServletRequest request) |
public static final String SYSTEM_AVATARS_FIELD
public static final String CUSTOM_AVATARS_FIELD
public UniversalAvatarResource(JiraAuthenticationContext authContext, AvatarUrls avatarUrls, AvatarResourceHelper avatarResourceHelper, TemporaryAvatarHelper avatarTemporaryHelper, AvatarManager avatarManager, AvatarImageResolver avatarImageResolver)
public javax.ws.rs.core.Response getAvatars(String avatarType, String owningObjectId)
public javax.ws.rs.core.Response storeTemporaryAvatar(String avatarType, String owningObjectId, String filename, Long size, @Context javax.servlet.http.HttpServletRequest request)
avatarType
- Type of entity where to change avatarowningObjectId
- Entity id where to change avatarfilename
- name of file being uploadedsize
- size of filerequest
- servlet requestpublic javax.ws.rs.core.Response storeTemporaryAvatarUsingMultiPart(String avatarType, String owningObjectId, com.atlassian.plugins.rest.common.multipart.FilePart filePart, @Context javax.servlet.http.HttpServletRequest request)
public javax.ws.rs.core.Response createAvatarFromTemporary(String avatarType, String owningObjectId, AvatarCroppingBean croppingInstructions)
Copyright © 2002-2021 Atlassian. All Rights Reserved.