public interface AuthorizationSupport
JiraWebActionSupport
Modifier and Type | Method and Description |
---|---|
boolean |
hasGlobalPermission(GlobalPermissionKey globalPermissionKey)
Returns true if the logged in user has the given global permission.
|
boolean |
hasGlobalPermission(String permissionKey)
Returns true if the logged in user has the given global permission.
|
boolean |
hasIssuePermission(int permissionsId,
Issue issue)
Deprecated.
|
boolean |
hasIssuePermission(ProjectPermissionKey projectPermissionKey,
Issue issue)
Returns true if the logged in user has the given permission on the given Issue.
|
boolean |
hasIssuePermission(String permissionKey,
Issue issue)
Returns true if the logged in user has the given permission type on the given Issue.
|
boolean |
hasPermission(int permissionsId)
Deprecated.
Use
hasGlobalPermission(com.atlassian.jira.permission.GlobalPermissionKey) instead. Since v6.4. |
boolean |
hasProjectPermission(int permissionsId,
Project project)
Deprecated.
|
boolean |
hasProjectPermission(ProjectPermissionKey projectPermissionKey,
Project project)
Returns true if the logged in user has the given permission on the given project.
|
boolean hasPermission(int permissionsId)
hasGlobalPermission(com.atlassian.jira.permission.GlobalPermissionKey)
instead. Since v6.4.permissionsId
- the permission typeboolean hasGlobalPermission(GlobalPermissionKey globalPermissionKey)
This method is intended to be used in Java code. If you are using JSP / Velocity / Soy Templates, it is
probably easier to call hasGlobalPermission(String)
instead.
globalPermissionKey
- the permission to checkhasGlobalPermission(String)
boolean hasGlobalPermission(String permissionKey)
This method is intended to be used in JSP / Velocity / Soy Templates. If you are using Java directly, it is
recommended to call hasGlobalPermission(com.atlassian.jira.permission.GlobalPermissionKey)
instead.
Note that this method takes a Global Permission Key, which is a different value to the old "permission name"
that some previous methods would accept - see GlobalPermissionKey
for correct values of the system
permissions.
permissionKey
- the permission to checkhasGlobalPermission(com.atlassian.jira.permission.GlobalPermissionKey)
boolean hasIssuePermission(String permissionKey, Issue issue)
This method is intended for use in Velocity templates / JSPs etc. Within Java code you should prefer the method that takes a ProjectPermissionKey.
Note that this method takes a Permission Key, which is a different value to the old "permission name" that
some previous methods would accept - see ProjectPermissions
for correct
values of the system permissions.
permissionKey
- the permission key as a Stringissue
- the IssuehasIssuePermission(com.atlassian.jira.security.plugin.ProjectPermissionKey, com.atlassian.jira.issue.Issue)
boolean hasIssuePermission(int permissionsId, Issue issue)
hasIssuePermission(com.atlassian.jira.security.plugin.ProjectPermissionKey, com.atlassian.jira.issue.Issue)
instead. Since v6.4.permissionsId
- the permission typeissue
- the Issueboolean hasIssuePermission(ProjectPermissionKey projectPermissionKey, Issue issue)
projectPermissionKey
- the permission to checkissue
- the IssuehasIssuePermission(String, com.atlassian.jira.issue.Issue)
boolean hasProjectPermission(int permissionsId, Project project)
hasProjectPermission(com.atlassian.jira.security.plugin.ProjectPermissionKey, com.atlassian.jira.project.Project)
instead. Since v6.4.permissionsId
- the permission typeproject
- the Projectboolean hasProjectPermission(ProjectPermissionKey projectPermissionKey, Project project)
projectPermissionKey
- the permission to checkproject
- the projectCopyright © 2002-2017 Atlassian. All Rights Reserved.