public interface

TemporaryAvatars

com.atlassian.jira.avatar.TemporaryAvatars
Known Indirect Subclasses

Class Overview

Emmanation of existing implicit link between REST plugin and core. Temporary avatar is created and stored in REST and displayed by servlet in core. This may be changed in future versions.

Summary

Public Methods
void dispose(TemporaryAvatar avatar)
Dispose temporary avatar.
@Nullable TemporaryAvatar getCurrentTemporaryAvatar()
Get current temporary avatar.
void storeTemporaryAvatar(ApplicationUser remoteUser, TemporaryAvatar avatar, Avatar.Type type, String owningObjectId)
Store temporary avatar - make it available to displaying servlet.

Public Methods

public void dispose (TemporaryAvatar avatar)

Dispose temporary avatar. Unsets if this is current temporary avatar.

@Nullable public TemporaryAvatar getCurrentTemporaryAvatar ()

Get current temporary avatar.

public void storeTemporaryAvatar (ApplicationUser remoteUser, TemporaryAvatar avatar, Avatar.Type type, String owningObjectId)

Store temporary avatar - make it available to displaying servlet. There is only one temporary avatar stored for user session.

Parameters
remoteUser user that access avatar - null can be used for anonymous access.
avatar avatar to store
type type for which this avatar is
owningObjectId id of object (project/user/issuetype) to which this avatar is connected to