public interface AvatarAccessPolicy
Modifier and Type | Method and Description |
---|---|
boolean |
userCanCreateAvatarFor(ApplicationUser remoteUser,
String owningObjectId)
Return information if user can add avatar to given subject.
|
boolean |
userCanViewAvatar(ApplicationUser remoteUser,
Avatar avatar)
Return information if user can add avatar to given subject.
|
boolean userCanViewAvatar(@Nullable ApplicationUser remoteUser, @Nonnull Avatar avatar)
remoteUser
- user whose permissions should be used. Null means anonymous access.avatar
- avatar that the user wishes to accessboolean userCanCreateAvatarFor(@Nullable ApplicationUser remoteUser, @Nonnull String owningObjectId)
remoteUser
- user whose permissions should be used. Null means anonymous access.owningObjectId
- id of object (project/user/issuetype) to which this avatar is connected toCopyright © 2002-2015 Atlassian. All Rights Reserved.