@ExperimentalApi public interface

AvatarImageResolver

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

@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 shoul be used.
Returns
  • abslute 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 shoul be used.
Returns
  • uri path, querty, hash part thats leads to avatar with given size, relative to servletContext