public class

IssueTypeAvatarAccessPolicy

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

Summary

Public Constructors
IssueTypeAvatarAccessPolicy(GlobalPermissionManager permissionManager)
Public Methods
boolean userCanCreateAvatarFor(ApplicationUser remoteUser, String owningObjectId)
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 IssueTypeAvatarAccessPolicy (GlobalPermissionManager permissionManager)

Public Methods

public boolean userCanCreateAvatarFor (ApplicationUser remoteUser, String owningObjectId)

Return information if user can add avatar to given subject.

Parameters
remoteUser user whose permissions should be used. Null means anonymous access.
owningObjectId 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