public class CantTransitionIssueProjectPermissionOverride extends Object implements ProjectPermissionOverride
ProjectPermissionOverride.Decision, ProjectPermissionOverride.Reason
Constructor and Description |
---|
CantTransitionIssueProjectPermissionOverride() |
Modifier and Type | Method and Description |
---|---|
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.
|
public CantTransitionIssueProjectPermissionOverride()
public ProjectPermissionOverride.Decision hasPermission(ProjectPermissionKey projectPermissionKey, Project project, @Nullable ApplicationUser applicationUser)
ProjectPermissionOverride
hasPermission
in interface ProjectPermissionOverride
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.public ProjectPermissionOverride.Reason getReason(ProjectPermissionKey projectPermissionKey, Project project, ApplicationUser applicationUser)
ProjectPermissionOverride
getReason
in interface ProjectPermissionOverride
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.Copyright © 2002-2021 Atlassian. All Rights Reserved.