public interface

AuthorizationSupport

com.atlassian.jira.web.util.AuthorizationSupport
Known Indirect Subclasses

Class Overview

Groups a collection of authorization checks used by JIRA's view layer.

Summary

Public Methods
boolean hasIssuePermission(int permissionsId, Issue issue)
Returns true if the logged in user has the given permission type on the given Issue.
boolean hasPermission(int permissionsId)
Returns true if the logged in user has the given permission type.
boolean hasProjectPermission(int permissionsId, Project project)
Returns true if the logged in user has the given permission type on the given Project.
boolean isHasIssuePermission(int permissionsId, GenericValue issue)
This method is deprecated. Use hasIssuePermission(int, com.atlassian.jira.issue.Issue) instead. Since v6.0.
boolean isHasIssuePermission(String permName, GenericValue issue)
This method is deprecated. Use hasIssuePermission(int, com.atlassian.jira.issue.Issue) instead. Since v6.0.
boolean isHasPermission(String permName)
This method is deprecated. Use hasPermission(int) instead. Since v6.0.
@Deprecated boolean isHasPermission(String permName, GenericValue entity)
boolean isHasPermission(int permissionsId)
This method is deprecated. Use hasPermission(int) instead. Since v6.0.
boolean isHasProjectPermission(int permissionsId, GenericValue project)
This method is deprecated. Use hasProjectPermission(int, com.atlassian.jira.project.Project) instead. Since v6.0.
boolean isHasProjectPermission(String permName, GenericValue project)
This method is deprecated. Use hasProjectPermission(int, com.atlassian.jira.project.Project) instead. Since v6.0.

Public Methods

public boolean hasIssuePermission (int permissionsId, Issue issue)

Returns true if the logged in user has the given permission type on the given Issue.

Parameters
permissionsId the permission type
issue the Issue
Returns
  • true if the logged in user has the given permission type on the given Issue.

public boolean hasPermission (int permissionsId)

Returns true if the logged in user has the given permission type.

Parameters
permissionsId the permission type
Returns
  • true if the logged in user has the given permission type.

public boolean hasProjectPermission (int permissionsId, Project project)

Returns true if the logged in user has the given permission type on the given Project.

Parameters
permissionsId the permission type
project the Project
Returns
  • true if the logged in user has the given permission type on the given Project.

public boolean isHasIssuePermission (int permissionsId, GenericValue issue)

This method is deprecated.
Use hasIssuePermission(int, com.atlassian.jira.issue.Issue) instead. Since v6.0.

Returns true if the logged in user has the given permission type on the given Issue.

Parameters
permissionsId the permission type
issue the Issue
Returns
  • true if the logged in user has the given permission type on the given Issue.

public boolean isHasIssuePermission (String permName, GenericValue issue)

This method is deprecated.
Use hasIssuePermission(int, com.atlassian.jira.issue.Issue) instead. Since v6.0.

Returns true if the logged in user has the given permission type on the given Issue.

Parameters
permName the permission type
issue the Issue
Returns
  • true if the logged in user has the given permission type on the given Issue.

public boolean isHasPermission (String permName)

This method is deprecated.
Use hasPermission(int) instead. Since v6.0.

Returns true if the logged in user has the given permission type.

Parameters
permName the permission type
Returns
  • true if the logged in user has the given permission type.

@Deprecated public boolean isHasPermission (String permName, GenericValue entity)

This method is deprecated.
since 4.3. Please use either isHasIssuePermission(String, org.ofbiz.core.entity.GenericValue), isHasIssuePermission(int, org.ofbiz.core.entity.GenericValue) or isHasProjectPermission(String, org.ofbiz.core.entity.GenericValue), isHasProjectPermission(int, org.ofbiz.core.entity.GenericValue).

Returns true if remote user has permission over given entity, false otherwise.

Parameters
permName permission type
entity entity to check the permission for, e.g. project, issue
Returns
  • true if remote user has permission over given entity, false otherwise

public boolean isHasPermission (int permissionsId)

This method is deprecated.
Use hasPermission(int) instead. Since v6.0.

Returns true if the logged in user has the given permission type.

Parameters
permissionsId the permission type
Returns
  • true if the logged in user has the given permission type.

public boolean isHasProjectPermission (int permissionsId, GenericValue project)

This method is deprecated.
Use hasProjectPermission(int, com.atlassian.jira.project.Project) instead. Since v6.0.

Returns true if the logged in user has the given permission type on the given Project.

Parameters
permissionsId the permission type
project the Project
Returns
  • true if the logged in user has the given permission type on the given Project.

public boolean isHasProjectPermission (String permName, GenericValue project)

This method is deprecated.
Use hasProjectPermission(int, com.atlassian.jira.project.Project) instead. Since v6.0.

Returns true if the logged in user has the given permission type on the given Project.

Parameters
permName the permission type
project the Project
Returns
  • true if the logged in user has the given permission type on the given Project.