com.atlassian.jira.avatar
Class AvatarServiceHelper

java.lang.Object
  extended by com.atlassian.jira.avatar.AvatarServiceHelper

public final class AvatarServiceHelper
extends Object

Renders avatars for an arbitrary user. This whole class really only exists because Velocity gets confused when calling into the real AvatarService on account of the fact that the AvatarService has a bunch of overloaded methods and Velocity can't decide which one to run when it gets a null user (JRADEV-20734).

Since:
v6.0

Constructor Summary
AvatarServiceHelper(AvatarService avatarService)
           
 
Method Summary
 String renderURL(com.atlassian.crowd.embedded.api.User loggedInUser, com.atlassian.crowd.embedded.api.User avatarUser, Avatar.Size size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvatarServiceHelper

public AvatarServiceHelper(AvatarService avatarService)
Method Detail

renderURL

public String renderURL(com.atlassian.crowd.embedded.api.User loggedInUser,
                        com.atlassian.crowd.embedded.api.User avatarUser,
                        Avatar.Size size)
See Also:
AvatarService.getAvatarURL(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.avatar.Avatar.Size)


Copyright © 2002-2014 Atlassian. All Rights Reserved.