public class

TypedAvatarAccessPolicy

extends Object
implements AvatarAccessPolicy
java.lang.Object
   ↳ com.atlassian.jira.avatar.types.TypedAvatarAccessPolicy

Summary

Public Constructors
TypedAvatarAccessPolicy(Avatar.Type type)
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.avatar.types.AvatarAccessPolicy

Public Constructors

public TypedAvatarAccessPolicy (Avatar.Type type)

Public Methods

public boolean userCanCreateAvatarFor (ApplicationUser user, String owniningObjectId)

Return information if user can add avatar to given subject.

Parameters
user user whose permissions should be used. Null means anonymous access.
owniningObjectId id of object (project/user/issuetype) to which this avatar is connected to

public boolean userCanViewAvatar (ApplicationUser user, Avatar avatar)

Return information if user can add avatar to given subject.

Parameters
user user whose permissions should be used. Null means anonymous access.
avatar avatar that the user wishes to access