public interface

ShareTypePermissionChecker

com.atlassian.jira.sharing.type.ShareTypePermissionChecker
Known Indirect Subclasses

Class Overview

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

Summary

Public Methods
boolean hasPermission(ApplicationUser user, SharePermission permission)
Checks if the passed user is given rights by the ShareType to user/view a SharedEntity with the passed permission.

Public Methods

public boolean hasPermission (ApplicationUser 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.