Package com.atlassian.jira.avatar
Interface AvatarImageResolver
- All Known Implementing Classes:
BasicAvatarsImageResolver,IconImageResolverImpl,IssueTypeAvatarImageResolver,ProjectAvatarImageResolver
Deprecated.
Avatar URLs returned by AvatarService are URI References, removing the need for absolute/relative schism
Provides links (or image date) to display avatar image in given size.
- Since:
- v6.3
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetAvatarAbsoluteUri(ApplicationUser remoteUser, Avatar avatar, Avatar.Size requestedSize) Deprecated.Return absolute link to display avatar image of given size.getAvatarRelativeUri(ApplicationUser remoteUser, Avatar avatar, Avatar.Size requestedSize) Deprecated.Return link (relative to application context) to display avatar image of given size.
-
Method Details
-
getAvatarAbsoluteUri
@Nonnull URI getAvatarAbsoluteUri(@Nullable ApplicationUser remoteUser, @Nonnull Avatar avatar, @Nullable Avatar.Size requestedSize) Deprecated.Return absolute link to display avatar image of given size.- Parameters:
remoteUser- user that access avatar - null can be used for anonymous access.avatar- avatar where to look for imagesrequestedSize- requested size or null if default size should be used.- Returns:
- absolute url
-
getAvatarRelativeUri
@Nonnull URI getAvatarRelativeUri(@Nullable ApplicationUser remoteUser, @Nonnull Avatar avatar, @Nullable Avatar.Size requestedSize) Deprecated.Return link (relative to application context) to display avatar image of given size.- Parameters:
remoteUser- user that access avatar - null can be used for anonymous access.avatar- avatar where to look for imagesrequestedSize- requested size or null if default size should be used.- Returns:
- the relative uri to the avatar with the requested size, relative to servletContext.
-