com.atlassian.jira.dev.reference.plugin.security
Class CantCommentProjectPermissionOverride
java.lang.Object
com.atlassian.jira.dev.reference.plugin.security.CantCommentProjectPermissionOverride
- All Implemented Interfaces:
- ProjectPermissionOverride
public class CantCommentProjectPermissionOverride
- extends Object
- implements ProjectPermissionOverride
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CantCommentProjectPermissionOverride
public CantCommentProjectPermissionOverride()
hasPermission
public ProjectPermissionOverride.Decision hasPermission(ProjectPermissionKey projectPermissionKey,
Project project,
ApplicationUser applicationUser)
- Description copied from interface:
ProjectPermissionOverride
- 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.
- Specified by:
hasPermission
in interface ProjectPermissionOverride
- Parameters:
projectPermissionKey
- identifier of the project permission.project
- project to which permissions are overriden.applicationUser
- whose permissions are going to be overriden.
- Returns:
- the decision.
getReason
public ProjectPermissionOverride.Reason getReason(ProjectPermissionKey projectPermissionKey,
Project project,
ApplicationUser applicationUser)
- Description copied from interface:
ProjectPermissionOverride
- 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.
- Specified by:
getReason
in interface ProjectPermissionOverride
- Parameters:
projectPermissionKey
- identifier of the project permission.project
- project to which permissions are checked.applicationUser
- whose permissions are checked.
- Returns:
- the reason.
Copyright © 2002-2014 Atlassian. All Rights Reserved.