com.atlassian.jira.avatar.temporary
Class TemporaryAvatarsImpl

java.lang.Object
  extended by com.atlassian.jira.avatar.temporary.TemporaryAvatarsImpl
All Implemented Interfaces:
TemporaryAvatars

public class TemporaryAvatarsImpl
extends Object
implements TemporaryAvatars


Constructor Summary
TemporaryAvatarsImpl(UniversalAvatarsService avatars)
           
 
Method Summary
 void dispose(TemporaryAvatar avatar)
          Dispose temporary avatar.
 TemporaryAvatar getCurrentTemporaryAvatar()
          Get current temporary avatar.
 void storeTemporaryAvatar(ApplicationUser remoteUser, TemporaryAvatar avatar, Avatar.Type type, String ownerId)
          Store temporary avatar - make it available to displaying servlet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemporaryAvatarsImpl

public TemporaryAvatarsImpl(UniversalAvatarsService avatars)
Method Detail

storeTemporaryAvatar

public void storeTemporaryAvatar(ApplicationUser remoteUser,
                                 TemporaryAvatar avatar,
                                 Avatar.Type type,
                                 String ownerId)
                          throws IllegalAccessException
Description copied from interface: TemporaryAvatars
Store temporary avatar - make it available to displaying servlet. There is only one temporary avatar stored for user session.

Specified by:
storeTemporaryAvatar in interface TemporaryAvatars
Parameters:
remoteUser - user that access avatar - null can be used for anonymous access.
avatar - avatar to store
type - type for which this avatar is
ownerId - id of object (project/user/issuetype) to which this avatar is connected to
Throws:
IllegalAccessException

getCurrentTemporaryAvatar

public TemporaryAvatar getCurrentTemporaryAvatar()
Description copied from interface: TemporaryAvatars
Get current temporary avatar.

Specified by:
getCurrentTemporaryAvatar in interface TemporaryAvatars

dispose

public void dispose(TemporaryAvatar avatar)
Description copied from interface: TemporaryAvatars
Dispose temporary avatar. Unsets if this is current temporary avatar.

Specified by:
dispose in interface TemporaryAvatars


Copyright © 2002-2015 Atlassian. All Rights Reserved.