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)
AvatarAccessPolicy
userCanViewAvatar
in interface AvatarAccessPolicy
user
- user whose permissions should be used. Null means anonymous access.avatar
- avatar that the user wishes to accesspublic boolean userCanCreateAvatarFor(ApplicationUser user, String owniningObjectId)
AvatarAccessPolicy
userCanCreateAvatarFor
in interface AvatarAccessPolicy
user
- 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.