com.atlassian.jira.plugin.headernav
Class AvatarUrlContextProvider

java.lang.Object
  extended by com.atlassian.jira.plugin.headernav.AvatarUrlContextProvider
All Implemented Interfaces:
com.atlassian.plugin.web.ContextProvider

public class AvatarUrlContextProvider
extends Object
implements com.atlassian.plugin.web.ContextProvider

Injects the url of the user's avatar into the context (see AVATAR_URL_KEY for the key). If the avatar could not be found, the context contains null.


Constructor Summary
AvatarUrlContextProvider(AvatarService avatarService, JiraAuthenticationContext authenticationContext)
           
 
Method Summary
 Map<String,Object> getContextMap(Map<String,Object> context)
           
 void init(Map<String,String> params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvatarUrlContextProvider

public AvatarUrlContextProvider(@Nonnull
                                AvatarService avatarService,
                                @Nonnull
                                JiraAuthenticationContext authenticationContext)
Method Detail

init

public void init(Map<String,String> params)
          throws com.atlassian.plugin.PluginParseException
Specified by:
init in interface com.atlassian.plugin.web.ContextProvider
Throws:
com.atlassian.plugin.PluginParseException

getContextMap

@Nonnull
public Map<String,Object> getContextMap(@Nullable
                                                Map<String,Object> context)
Specified by:
getContextMap in interface com.atlassian.plugin.web.ContextProvider


Copyright © 2002-2013 Atlassian. All Rights Reserved.