|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.avatar.types.BasicTypedTypeAvatarService
public class BasicTypedTypeAvatarService
Constructor Summary | |
---|---|
BasicTypedTypeAvatarService(Avatar.Type type,
AvatarManager avatarManager,
AvatarAccessPolicy policy)
|
Method Summary | |
---|---|
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 permisions of remote user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicTypedTypeAvatarService(Avatar.Type type, AvatarManager avatarManager, AvatarAccessPolicy policy)
Method Detail |
---|
public final SystemAndCustomAvatars getAvatars(ApplicationUser remoteUser, String owningObjectId)
TypeAvatarService
getAvatars
in interface TypeAvatarService
remoteUser
- user whose permissions should be usedowningObjectId
- id of object (project/user/issuetype) to which this avatar is connected to
public Avatar getAvatar(ApplicationUser remoteUser, long avatarId)
TypeAvatarService
getAvatar
in interface TypeAvatarService
remoteUser
- user whose permissions should be usedavatarId
- avatar idpublic boolean canUserCreateAvatar(ApplicationUser remoteUser, String owningObjectId)
TypeAvatarService
canUserCreateAvatar
in interface TypeAvatarService
remoteUser
- user whose permissions should be usedowningObjectId
- id of object (project/user/issuetype) to which this avatar is connected topublic Avatar createAvatar(ApplicationUser remoteUser, String owningObjectId, AvatarImageDataProvider imageDataProvider) throws IllegalAccessException, IOException
TypeAvatarService
createAvatar
in interface TypeAvatarService
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 avatar
IllegalAccessException
- if user cannot add avatar to given subject
IOException
- if there is error with image data
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |