com.atlassian.confluence.plugins.avatar
Class DefaultAvatarUrlHelper

java.lang.Object
  extended by com.atlassian.confluence.plugins.avatar.DefaultAvatarUrlHelper
All Implemented Interfaces:
AvatarUrlHelper

public class DefaultAvatarUrlHelper
extends Object
implements AvatarUrlHelper


Constructor Summary
DefaultAvatarUrlHelper(AvatarUrlHelper hashingAvatarUrlHelper, AvatarUrlHelper legacyAvatarUrlHelper, AvatarManager avatarManager, UserAccessor userAccessor)
           
 
Method Summary
 String getAvatarUrl(String username, int width)
          The avatar URL including any context path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAvatarUrlHelper

public DefaultAvatarUrlHelper(@Qualifier(value="hashingAvatarUrlHelper")
                              AvatarUrlHelper hashingAvatarUrlHelper,
                              @Qualifier(value="legacyAvatarUrlHelper")
                              AvatarUrlHelper legacyAvatarUrlHelper,
                              AvatarManager avatarManager,
                              UserAccessor userAccessor)
Method Detail

getAvatarUrl

public String getAvatarUrl(String username,
                           int width)
Description copied from interface: AvatarUrlHelper
The avatar URL including any context path.

Specified by:
getAvatarUrl in interface AvatarUrlHelper
Parameters:
username - the name of the user
width - the width of the avatar. Must be greater than 0.
Returns:
the avatar URL including any context path.


Copyright © 2003-2013 Atlassian. All Rights Reserved.