com.atlassian.jira.avatar.types.project
Class ProjectAvatarAccessPolicy

java.lang.Object
  extended by com.atlassian.jira.avatar.types.project.ProjectAvatarAccessPolicy
All Implemented Interfaces:
AvatarAccessPolicy

public class ProjectAvatarAccessPolicy
extends Object
implements AvatarAccessPolicy


Constructor Summary
ProjectAvatarAccessPolicy(ProjectManager projectManager, PermissionManager permissionManager, ProjectService projectService)
           
 
Method Summary
 boolean userCanCreateAvatarFor(ApplicationUser user, 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectAvatarAccessPolicy

public ProjectAvatarAccessPolicy(ProjectManager projectManager,
                                 PermissionManager permissionManager,
                                 ProjectService projectService)
Method Detail

userCanViewAvatar

public boolean userCanViewAvatar(ApplicationUser user,
                                 Avatar avatar)
Description copied from interface: AvatarAccessPolicy
Return information if user can add avatar to given subject.

Specified by:
userCanViewAvatar in interface AvatarAccessPolicy
Parameters:
user - user whose permissions should be used. Null means anonymous access.
avatar - avatar that the user wishes to access

userCanCreateAvatarFor

public boolean userCanCreateAvatarFor(ApplicationUser user,
                                      String owningObjectId)
Description copied from interface: AvatarAccessPolicy
Return information if user can add avatar to given subject.

Specified by:
userCanCreateAvatarFor in interface AvatarAccessPolicy
Parameters:
user - 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.