@Component public class TemporaryAvatarHelper extends Object
Constructor and Description |
---|
TemporaryAvatarHelper(TemporaryAvatarUploader avatarUploader,
AttachmentHelper attachmentHelper,
TemporaryAvatars temporaryAvatars,
VelocityRequestContextFactory requestContextFactory,
UniversalAvatarsService avatars,
CroppingAvatarImageDataProviderFactory croppingAvatarImageDataProviderFactory,
I18nHelper i18nHelper) |
Modifier and Type | Method and Description |
---|---|
Avatar |
convertTemporaryToReal(ApplicationUser remoteUser,
String ownerId,
Avatar.Type type,
Selection selection) |
AvatarBean |
createAvatarFromTemporary(ApplicationUser remoteUser,
Avatar.Type type,
String ownerId,
AvatarCroppingBean croppingInstructions) |
String |
getTemporaryAvatarUrl() |
javax.ws.rs.core.Response |
storeTemporaryAvatar(ApplicationUser remoteUser,
Avatar.Type type,
String ownerId,
Avatar.Size targetSize,
com.atlassian.plugins.rest.common.multipart.FilePart filePart,
javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
storeTemporaryAvatar(ApplicationUser remoteUser,
Avatar.Type type,
String ownerId,
Avatar.Size targetSize,
String filename,
Long size,
javax.servlet.http.HttpServletRequest request) |
@Inject public TemporaryAvatarHelper(TemporaryAvatarUploader avatarUploader, AttachmentHelper attachmentHelper, TemporaryAvatars temporaryAvatars, VelocityRequestContextFactory requestContextFactory, UniversalAvatarsService avatars, CroppingAvatarImageDataProviderFactory croppingAvatarImageDataProviderFactory, I18nHelper i18nHelper)
public javax.ws.rs.core.Response storeTemporaryAvatar(ApplicationUser remoteUser, Avatar.Type type, String ownerId, Avatar.Size targetSize, String filename, Long size, javax.servlet.http.HttpServletRequest request)
public javax.ws.rs.core.Response storeTemporaryAvatar(ApplicationUser remoteUser, Avatar.Type type, String ownerId, Avatar.Size targetSize, com.atlassian.plugins.rest.common.multipart.FilePart filePart, javax.servlet.http.HttpServletRequest request)
public AvatarBean createAvatarFromTemporary(ApplicationUser remoteUser, Avatar.Type type, String ownerId, AvatarCroppingBean croppingInstructions)
public String getTemporaryAvatarUrl()
public Avatar convertTemporaryToReal(ApplicationUser remoteUser, String ownerId, Avatar.Type type, Selection selection)
Copyright © 2002-2015 Atlassian. All Rights Reserved.