com.atlassian.jira.dev.reference.plugin.security
Class CantCommentProjectPermissionOverride

java.lang.Object
  extended by com.atlassian.jira.dev.reference.plugin.security.CantCommentProjectPermissionOverride
All Implemented Interfaces:
ProjectPermissionOverride

public class CantCommentProjectPermissionOverride
extends Object
implements ProjectPermissionOverride


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.security.plugin.ProjectPermissionOverride
ProjectPermissionOverride.Decision, ProjectPermissionOverride.Reason
 
Constructor Summary
CantCommentProjectPermissionOverride()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CantCommentProjectPermissionOverride

public CantCommentProjectPermissionOverride()
Method Detail

hasPermission

public ProjectPermissionOverride.Decision hasPermission(ProjectPermissionKey projectPermissionKey,
                                                        Project project,
                                                        @Nullable
                                                        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 overridden. This can be null when check is performed for anonymous user.
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. This can be null when check is performed for anonymous user.
Returns:
the reason.


Copyright © 2002-2014 Atlassian. All Rights Reserved.