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 Object
implements ShareTypePermissionChecker

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

Since:
v3.13

Constructor Summary
GroupShareTypePermissionChecker(UserManager userManager)
           
 
Method Summary
 boolean hasPermission(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(UserManager userManager)
Method Detail

hasPermission

public boolean hasPermission(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-2009 Atlassian. All Rights Reserved.