com.atlassian.jira.sharing.type
Interface ShareTypePermissionChecker
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
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-2011 Atlassian. All Rights Reserved.