public class TypedAvatarAccessPolicy extends Object implements AvatarAccessPolicy
| Constructor and Description |
|---|
TypedAvatarAccessPolicy(Avatar.Type type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
userCanCreateAvatarFor(ApplicationUser user,
String owniningObjectId)
Return information if user can add avatar to given subject.
|
boolean |
userCanViewAvatar(ApplicationUser user,
Avatar avatar)
Return information if user can add avatar to given subject.
|
public TypedAvatarAccessPolicy(Avatar.Type type)
public boolean userCanViewAvatar(ApplicationUser user, Avatar avatar)
AvatarAccessPolicyuserCanViewAvatar in interface AvatarAccessPolicyuser - user whose permissions should be used. Null means anonymous access.avatar - avatar that the user wishes to accesspublic boolean userCanCreateAvatarFor(ApplicationUser user, String owniningObjectId)
AvatarAccessPolicyuserCanCreateAvatarFor in interface AvatarAccessPolicyuser - user whose permissions should be used. Null means anonymous access.owniningObjectId - id of object (project/user/issuetype) to which this avatar is connected toCopyright © 2002-2015 Atlassian. All Rights Reserved.