com.atlassian.jira.sharing.type
Class GroupShareTypePermissionChecker

java.lang.Object
  extended by com.atlassian.jira.sharing.type.GroupShareTypePermissionChecker
All Implemented Interfaces:
ShareTypePermissionChecker

public class GroupShareTypePermissionChecker
extends java.lang.Object
implements ShareTypePermissionChecker

Permissions Checker for SharedEntity objects that are shared with a group.

Since:
v3.13

Constructor Summary
GroupShareTypePermissionChecker(com.opensymphony.user.UserManager userManager)
           
 
Method Summary
 boolean hasPermission(com.opensymphony.user.User user, SharePermission permission)
          Checks to see if user is part of the group specified in the permission
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupShareTypePermissionChecker

public GroupShareTypePermissionChecker(com.opensymphony.user.UserManager userManager)
Method Detail

hasPermission

public boolean hasPermission(com.opensymphony.user.User user,
                             SharePermission permission)
Checks to see if user is part of the group specified in the permission

Specified by:
hasPermission in interface ShareTypePermissionChecker
Parameters:
user - the user to check
permission - The permission containing the group
Returns:
true if user is part of group, else false.


Copyright © 2002-2011 Atlassian. All Rights Reserved.