Package com.atlassian.jira.avatar
Interface TemporaryAvatars
- All Known Implementing Classes:
TemporaryAvatarsImpl
@PublicApi
public interface TemporaryAvatars
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.
- Since:
- v6.3
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose
(TemporaryAvatar avatar) Dispose temporary avatar.Get current temporary avatar.void
storeTemporaryAvatar
(ApplicationUser remoteUser, TemporaryAvatar avatar, Avatar.Type type, String owningObjectId) Deprecated.This method cannot understand pluggable icon types.void
storeTemporaryAvatar
(ApplicationUser remoteUser, TemporaryAvatar avatar, IconType iconType, IconOwningObjectId owningObjectId) Store temporary avatar - make it available to displaying servlet.
-
Method Details
-
storeTemporaryAvatar
void storeTemporaryAvatar(@Nonnull ApplicationUser remoteUser, @Nonnull TemporaryAvatar avatar, @Nonnull Avatar.Type type, @Nonnull String owningObjectId) throws IllegalAccessException Deprecated.This method cannot understand pluggable icon types. UsestoreTemporaryAvatar(ApplicationUser, TemporaryAvatar, IconType, IconOwningObjectId)
. Since v7.1Store 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 storetype
- type for which this avatar isowningObjectId
- id of object (project/user/issuetype) to which this avatar is connected to- Throws:
IllegalAccessException
-
storeTemporaryAvatar
void storeTemporaryAvatar(@Nonnull ApplicationUser remoteUser, @Nonnull TemporaryAvatar avatar, @Nonnull IconType iconType, @Nonnull IconOwningObjectId owningObjectId) throws IllegalAccessException 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 storeiconType
- type for which this avatar isowningObjectId
- id of object (project/user/issuetype) to which this avatar is connected to- Throws:
IllegalAccessException
- Since:
- v7.1
-
getCurrentTemporaryAvatar
Get current temporary avatar. -
dispose
Dispose temporary avatar. Unsets if this is current temporary avatar.
-