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

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

public class CantEditIssueProjectPermissionOverride
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
CantEditIssueProjectPermissionOverride()
           
 
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

CantEditIssueProjectPermissionOverride

public CantEditIssueProjectPermissionOverride()
Method Detail

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.