@ExperimentalApi
public interface TypeAvatarService
UniversalAvatarsService
Modifier and Type | Method and Description |
---|---|
boolean |
canUserCreateAvatar(ApplicationUser remoteUser,
String owningObjectId)
Return information if user can add avatar to given subject.
|
Avatar |
createAvatar(ApplicationUser remoteUser,
String owningObjectId,
AvatarImageDataProvider imageDataProvider)
Adds new avatar to given subject with provided image data - with permissions of given remote user.
|
Avatar |
getAvatar(ApplicationUser remoteUser,
long avatarId)
Return avatar using remote user permissions.
|
SystemAndCustomAvatars |
getAvatars(ApplicationUser remoteUser,
String owningObjectId)
Get avatars assigned to given subject - with permissions of remote user.
|
Avatar |
getDefaultAvatar()
Get default avatar for current type.
|
@Nonnull SystemAndCustomAvatars getAvatars(@Nullable ApplicationUser remoteUser, @Nonnull String owningObjectId)
remoteUser
- user whose permissions should be usedowningObjectId
- id of object (project/user/issuetype) to which this avatar is connected to@Nullable Avatar getAvatar(@Nullable ApplicationUser remoteUser, long avatarId)
remoteUser
- user whose permissions should be usedavatarId
- avatar idboolean canUserCreateAvatar(@Nonnull ApplicationUser remoteUser, String owningObjectId)
remoteUser
- user whose permissions should be usedowningObjectId
- id of object (project/user/issuetype) to which this avatar is connected to@Nonnull Avatar createAvatar(@Nonnull ApplicationUser remoteUser, @Nonnull String owningObjectId, @Nonnull AvatarImageDataProvider imageDataProvider) throws IllegalAccessException, IOException
remoteUser
- user whose permissions should be usedowningObjectId
- id of object (project/user/issuetype) to which this avatar will be connected toimageDataProvider
- provider of image data for new avatarIllegalAccessException
- if user cannot add avatar to given subjectIOException
- if there is error with image dataCopyright © 2002-2021 Atlassian. All Rights Reserved.