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