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(GroupManager groupManager)
           
 
Method Summary
 boolean hasPermission(com.atlassian.crowd.embedded.api.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(GroupManager groupManager)
Method Detail

hasPermission

public boolean hasPermission(com.atlassian.crowd.embedded.api.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-2012 Atlassian. All Rights Reserved.