com.atlassian.jira.sharing.type
Interface ShareTypePermissionChecker

All Known Implementing Classes:
GlobalShareTypePermissionChecker, GroupShareTypePermissionChecker, ProjectShareTypePermissionChecker

public interface ShareTypePermissionChecker

Classes that implement this interface check that a user has permission to see a SharedEntity shared by the associated ShareType.

Since:
v3.13

Method Summary
 boolean hasPermission(com.atlassian.crowd.embedded.api.User user, SharePermission permission)
          Checks if the passed user is given rights by the ShareType to user/view a SharedEntity with the passed permission.
 

Method Detail

hasPermission

boolean hasPermission(com.atlassian.crowd.embedded.api.User user,
                      SharePermission permission)
Checks if the passed user is given rights by the ShareType to user/view a SharedEntity with the passed permission.

Parameters:
user - the user whose permission should be validated.
permission - the permission to validate against.
Returns:
true if the user is given rights or false otherwise.


Copyright © 2002-2013 Atlassian. All Rights Reserved.