Class BasicAvatarsImageResolver

java.lang.Object
com.atlassian.jira.avatar.types.BasicAvatarsImageResolver
All Implemented Interfaces:
AvatarImageResolver
Direct Known Subclasses:
IssueTypeAvatarImageResolver, ProjectAvatarImageResolver

public class BasicAvatarsImageResolver extends Object implements AvatarImageResolver
Deprecated.
This class does not work universally. Use IconImageResolverImpl. Since v7.1
  • Field Details

  • Constructor Details

  • Method Details

    • getAvatarAbsoluteUri

      public URI getAvatarAbsoluteUri(ApplicationUser avatarUser, Avatar avatar, Avatar.Size requestedSize)
      Deprecated.
      Description copied from interface: AvatarImageResolver
      Return absolute link to display avatar image of given size.
      Specified by:
      getAvatarAbsoluteUri in interface AvatarImageResolver
      Parameters:
      avatarUser - 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

      public URI getAvatarRelativeUri(ApplicationUser remoteUser, Avatar avatar, Avatar.Size requestedSize)
      Deprecated.
      Description copied from interface: AvatarImageResolver
      Return link (relative to application context) to display avatar image of given size.
      Specified by:
      getAvatarRelativeUri in interface AvatarImageResolver
      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.