Interface AvatarImageResolver

All Known Implementing Classes:
BasicAvatarsImageResolver, IconImageResolverImpl, IssueTypeAvatarImageResolver, ProjectAvatarImageResolver

@ExperimentalApi @Deprecated public interface AvatarImageResolver
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 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 images
      requestedSize - 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 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.