public class AvatarProviderAdapter extends Object implements JiraAvatarSupport
JiraAvatarSupport
using the highest weighted, enabled
AvatarProvider plugin module available.Constructor and Description |
---|
AvatarProviderAdapter(com.atlassian.plugin.PluginAccessor pluginAccessor) |
Modifier and Type | Method and Description |
---|---|
JiraPluginAvatar |
getAvatar(ApplicationUser user,
String size)
Obtain an avatar for the user.
|
JiraPluginAvatar |
getAvatar(String email,
String size)
Obtain an avatar by the email of the user.
|
JiraPluginAvatar |
getAvatarById(Long avatarId,
String size)
Obtain an avatar by its own identifier.
|
public AvatarProviderAdapter(com.atlassian.plugin.PluginAccessor pluginAccessor)
public JiraPluginAvatar getAvatar(String email, String size)
JiraAvatarSupport
getAvatar
in interface JiraAvatarSupport
email
- the unique String id of the object which has an avatar.size
- the AUI standard t-shirt size namepublic JiraPluginAvatar getAvatar(ApplicationUser user, String size)
JiraAvatarSupport
getAvatar
in interface JiraAvatarSupport
user
- the user whose avatar you want.size
- the AUI standard t-shirt size namepublic JiraPluginAvatar getAvatarById(Long avatarId, String size)
JiraAvatarSupport
getAvatarById
in interface JiraAvatarSupport
avatarId
- the id of the avatar.size
- the AUI standard t-shirt size name.Copyright © 2002-2015 Atlassian. All Rights Reserved.