|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AvatarService
Service for manipulating Avatar
's.
Method Summary | |
---|---|
Avatar |
getAvatar(com.atlassian.crowd.embedded.api.User remoteUser,
String avatarUserId)
Returns the Avatar for the given user, if configured. |
URI |
getAvatarAbsoluteURL(com.atlassian.crowd.embedded.api.User remoteUser,
String avatarUserId,
Avatar.Size size)
This is the same as getAvatarURL(com.atlassian.crowd.embedded.api.User, String, com.atlassian.jira.avatar.Avatar.Size)
but returns an absolute URL. |
URI |
getAvatarURL(com.atlassian.crowd.embedded.api.User remoteUser,
String avatarUserId,
Avatar.Size size)
Returns the URL for the avatar of the user having the given username for displaying on a page that should be shown for the passed in remoteUser. |
URI |
getAvatarUrlNoPermCheck(String avatarUserId,
Avatar.Size size)
This is the same as getAvatarURL(com.atlassian.crowd.embedded.api.User, String, com.atlassian.jira.avatar.Avatar.Size)
but does no permission checking. |
URI |
getProjectAvatarAbsoluteURL(Project project,
Avatar.Size size)
Returns the URL for the avatar of the given project. |
URI |
getProjectAvatarURL(Project project,
Avatar.Size size)
Returns the URL for the avatar of the given project. |
Method Detail |
---|
Avatar getAvatar(com.atlassian.crowd.embedded.api.User remoteUser, String avatarUserId) throws AvatarsDisabledException
remoteUser
- the User that wants to view an AvataravatarUserId
- a String containing a username (may have been deleted)
AvatarsDisabledException
- if avatars are disabledURI getAvatarURL(com.atlassian.crowd.embedded.api.User remoteUser, String avatarUserId, Avatar.Size size) throws AvatarsDisabledException
remoteUser
- a User object for the currently logged in useravatarUserId
- a String containing a username (may have been deleted)size
- the size of the avatar to be displayed (if null, the default size is used)
AvatarsDisabledException
- if avatars are disabledgetAvatar(com.atlassian.crowd.embedded.api.User, String)
URI getAvatarUrlNoPermCheck(String avatarUserId, Avatar.Size size) throws AvatarsDisabledException
getAvatarURL(com.atlassian.crowd.embedded.api.User, String, com.atlassian.jira.avatar.Avatar.Size)
but does no permission checking.
AvatarsDisabledException
URI getAvatarAbsoluteURL(com.atlassian.crowd.embedded.api.User remoteUser, String avatarUserId, Avatar.Size size) throws AvatarsDisabledException
getAvatarURL(com.atlassian.crowd.embedded.api.User, String, com.atlassian.jira.avatar.Avatar.Size)
but returns an absolute URL.
AvatarsDisabledException
URI getProjectAvatarURL(Project project, Avatar.Size size)
project
- the Project of which to get the avatar URLsize
- the size of the avatar to be displayed (if null, the default size is used)
URI getProjectAvatarAbsoluteURL(Project project, Avatar.Size size)
project
- the Project of which to get the avatar URLsize
- the size of the avatar to be displayed (if null, the default size is used)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |