com.atlassian.jira.avatar.TypeAvatarService |
Known Indirect Subclasses |
@Internal
or @PublicApi
.
Interface to retrieve and create avatars of some type. Works in service layer - obeying permissions.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return information if user can add avatar to given subject.
| |||||||||||
Adds new avatar to given subject with provided image data - with permissions of given remote user.
| |||||||||||
Return avatar using remote user permissions.
| |||||||||||
Get avatars assigned to given subject - with permisions of remote user.
|
Return information if user can add avatar to given subject.
remoteUser | user whose permissions should be used |
---|---|
owningObjectId | id of object (project/user/issuetype) to which this avatar is connected to |
Adds new avatar to given subject with provided image data - with permissions of given remote user. Returns created avatar.
remoteUser | user whose permissions should be used |
---|---|
owningObjectId | id of object (project/user/issuetype) to which this avatar will be connected to |
imageDataProvider | provider of image data for new avatar |
IllegalAccessException | if user cannot add avatar to given subject |
---|---|
IOException | if there is error with image data |
Return avatar using remote user permissions. May return null if user cannot access this avatar.
remoteUser | user whose permissions should be used |
---|---|
avatarId | avatar id |
Get avatars assigned to given subject - with permisions of remote user.
remoteUser | user whose permissions should be used |
---|---|
owningObjectId | id of object (project/user/issuetype) to which this avatar is connected to |