com.atlassian.jira.avatar.types
Interface AvatarAccessPolicy

All Known Implementing Classes:
ProjectAvatarAccessPolicy, TypedAvatarAccessPolicy

public interface AvatarAccessPolicy

Contains informations about user permissions to avatars of specific type.


Method Summary
 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.
 

Method Detail

userCanViewAvatar

boolean userCanViewAvatar(@Nullable
                          ApplicationUser remoteUser,
                          @Nonnull
                          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

userCanCreateAvatarFor

boolean userCanCreateAvatarFor(@Nullable
                               ApplicationUser remoteUser,
                               @Nonnull
                               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


Copyright © 2002-2014 Atlassian. All Rights Reserved.