public interface

AvatarAccessPolicy

com.atlassian.jira.avatar.types.AvatarAccessPolicy
Known Indirect Subclasses

Class Overview

Contains informations about user permissions to avatars of specific type.

Summary

Public Methods
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.

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 remoteUser, Avatar avatar)

Return information if user can add avatar to given subject.

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