@ExperimentalApi @Deprecated public interface

AvatarImageResolver

com.atlassian.jira.avatar.AvatarImageResolver
Known Indirect Subclasses

This interface is deprecated.
Avatar URLs returned by AvatarService are URI References, removing the need for absolute/relative schism

@ExperimentalApi

This interface is considered usable by external developers but its contracts have not stabilized.

Experimental APIs may be changed at any time before being marked @Internal or @PublicApi.

Class Overview

Provides links (or image date) to display avatar image in given size.

Summary

Public Methods
@Nonnull URI getAvatarAbsoluteUri(ApplicationUser remoteUser, Avatar avatar, Avatar.Size requestedSize)
Return absolute link to display avatar image of given size.
@Nonnull URI getAvatarRelativeUri(ApplicationUser remoteUser, Avatar avatar, Avatar.Size requestedSize)
Return link (relative to application context) to display avatar image of given size.

Public Methods

@Nonnull public URI getAvatarAbsoluteUri (ApplicationUser remoteUser, Avatar avatar, Avatar.Size requestedSize)

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 images
requestedSize requested size or null if default size should be used.
Returns
  • absolute url

@Nonnull public URI getAvatarRelativeUri (ApplicationUser remoteUser, Avatar avatar, Avatar.Size requestedSize)

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 images
requestedSize requested size or null if default size should be used.
Returns
  • the relative uri to the avatar with the requested size, relative to servletContext.