public class

CantCommentProjectPermissionOverride

extends Object
implements ProjectPermissionOverride
java.lang.Object
   ↳ com.atlassian.jira.dev.reference.plugin.security.CantCommentProjectPermissionOverride

Summary

Public Constructors
CantCommentProjectPermissionOverride()
Public Methods
ProjectPermissionOverride.Reason getReason(ProjectPermissionKey projectPermissionKey, Project project, ApplicationUser applicationUser)
The implementation of this method should return a description explaining how does the permission overriding affects if the user has permissions to the selected project.
ProjectPermissionOverride.Decision hasPermission(ProjectPermissionKey projectPermissionKey, Project project, ApplicationUser applicationUser)
The implementation of this method is supposed to either deny permissions or abstain from decision if the user has permissions to the selected project.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.security.plugin.ProjectPermissionOverride

Public Constructors

public CantCommentProjectPermissionOverride ()

Public Methods

public ProjectPermissionOverride.Reason getReason (ProjectPermissionKey projectPermissionKey, Project project, ApplicationUser applicationUser)

The implementation of this method should return a description explaining how does the permission overriding affects if the user has permissions to the selected project.

Parameters
projectPermissionKey identifier of the project permission.
project project to which permissions are checked.
applicationUser whose permissions are checked. This can be null when check is performed for anonymous user.
Returns
  • the reason.

public ProjectPermissionOverride.Decision hasPermission (ProjectPermissionKey projectPermissionKey, Project project, ApplicationUser applicationUser)

The implementation of this method is supposed to either deny permissions or abstain from decision if the user has permissions to the selected project. It is not allowed to override global permissions and BROWSE permission to the project.

Parameters
projectPermissionKey identifier of the project permission.
project project to which permissions are overridden. This can be null when check is performed for anonymous user.
applicationUser whose permissions are going to be overriden.
Returns
  • the decision.