public class AvatarPickerHelperImpl extends Object implements AvatarPickerHelper
| Modifier and Type | Class and Description |
|---|---|
static class |
AvatarPickerHelperImpl.Result<T> |
static class |
AvatarPickerHelperImpl.TemporaryAvatarBean |
| Constructor and Description |
|---|
AvatarPickerHelperImpl(AvatarManager avatarManager,
JiraAuthenticationContext authenticationContext,
ApplicationProperties properties,
VelocityRequestContextFactory requestContextFactory,
JiraContactHelper jiraContactHelper) |
| Modifier and Type | Method and Description |
|---|---|
AvatarPickerHelperImpl.Result<Avatar> |
convertTemporaryToReal(String ownerId,
IconType iconType,
Selection selection)
Converts temporary avatar (uploaded) to real avatar
|
AvatarPickerHelperImpl.Result<AvatarPickerHelperImpl.TemporaryAvatarBean> |
cropTemporary(String ownerId,
IconType iconType,
Selection selection)
Crops the temporary avatar (uploaded) using the given selection.
|
String |
getTemporaryAvatarUrl()
Gets temporary avatar url
|
AvatarPickerHelperImpl.Result<AvatarPickerHelperImpl.TemporaryAvatarBean> |
upload(InputStream stream,
String fileName,
String contentType,
long size,
String ownerId,
Avatar.Type type)
Handles upload of temporary avatar
|
AvatarPickerHelperImpl.Result<AvatarPickerHelperImpl.TemporaryAvatarBean> |
upload(InputStream stream,
String fileName,
String contentType,
long size,
String ownerId,
IconType iconType)
Handles upload of temporary avatar
|
public AvatarPickerHelperImpl(AvatarManager avatarManager, JiraAuthenticationContext authenticationContext, ApplicationProperties properties, VelocityRequestContextFactory requestContextFactory, JiraContactHelper jiraContactHelper)
public AvatarPickerHelperImpl.Result<AvatarPickerHelperImpl.TemporaryAvatarBean> upload(InputStream stream, String fileName, String contentType, long size, String ownerId, Avatar.Type type)
AvatarPickerHelperupload in interface AvatarPickerHelperstream - upload io streamfileName - name of upload filecontentType - image typesize - size of avatarownerId - ownerId the id of the owner, matches the type (project id or user key)type - the desired type of the avatar.public AvatarPickerHelperImpl.Result<AvatarPickerHelperImpl.TemporaryAvatarBean> upload(InputStream stream, String fileName, String contentType, long size, String ownerId, IconType iconType)
AvatarPickerHelperupload in interface AvatarPickerHelperstream - upload io streamfileName - name of upload filecontentType - image typesize - size of avatarownerId - ownerId the id of the owner, matches the type (project id or user key)iconType - the desired type of the avatar.public AvatarPickerHelperImpl.Result<Avatar> convertTemporaryToReal(String ownerId, IconType iconType, Selection selection)
AvatarPickerHelperconvertTemporaryToReal in interface AvatarPickerHelperownerId - the id of the owner, matches the type (project id or user key)iconType - the desired type of the avatarselection - the area of the temporary avatar to crop real avatar topublic AvatarPickerHelperImpl.Result<AvatarPickerHelperImpl.TemporaryAvatarBean> cropTemporary(String ownerId, IconType iconType, Selection selection)
AvatarPickerHelpercropTemporary in interface AvatarPickerHelperownerId - the id of the owner, matches the type (project id or user key)iconType - the desired type of the avatar.selection - the area of the temporary avatar to crop real avatar topublic String getTemporaryAvatarUrl()
AvatarPickerHelpergetTemporaryAvatarUrl in interface AvatarPickerHelperCopyright © 2002-2024 Atlassian. All Rights Reserved.