Package com.atlassian.jira.avatar.types
Class BasicAvatarsImageResolver
java.lang.Object
com.atlassian.jira.avatar.types.BasicAvatarsImageResolver
- All Implemented Interfaces:
AvatarImageResolver
- Direct Known Subclasses:
IssueTypeAvatarImageResolver
,ProjectAvatarImageResolver
Deprecated.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBasicAvatarsImageResolver
(Avatar.Type type, VelocityRequestContextFactory velocityRequestContextFactory, ApplicationProperties applicationProperties) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiongetAvatarAbsoluteUri
(ApplicationUser avatarUser, 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.
-
Field Details
-
AVATAR_ID_PARAM
Deprecated.- See Also:
-
SIZE_PARAM
Deprecated.- See Also:
-
PATH_PREFIX
Deprecated.- See Also:
-
AVATAR_TYPE_PARAM
Deprecated.- See Also:
-
-
Constructor Details
-
BasicAvatarsImageResolver
public BasicAvatarsImageResolver(Avatar.Type type, VelocityRequestContextFactory velocityRequestContextFactory, ApplicationProperties applicationProperties) Deprecated.
-
-
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 interfaceAvatarImageResolver
- Parameters:
avatarUser
- 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
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 interfaceAvatarImageResolver
- 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.
-
IconImageResolverImpl
. Since v7.1