public class

PermissionCheckBean

extends Object
java.lang.Object
   ↳ com.atlassian.jira.web.bean.PermissionCheckBean

Class Overview

This bean class allows for "concise" permission checks to be made. Its therefore useful in jsp/velocity contexts for check that the user has permission to see something and hence the UI can be adjusted appropriately.

Summary

Public Constructors
PermissionCheckBean(JiraAuthenticationContext authContext, PermissionManager permissionManager)
PermissionCheckBean()
Public Methods
boolean isAdmin()
Tells whether the configured user (if any) has admin permission.
boolean isIssueVisible(Issue issue)
Returns true if the user has permission to BROWSE the issue
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PermissionCheckBean (JiraAuthenticationContext authContext, PermissionManager permissionManager)

public PermissionCheckBean ()

Public Methods

public boolean isAdmin ()

Tells whether the configured user (if any) has admin permission.

Returns
  • true only if the user is an administrator.

public boolean isIssueVisible (Issue issue)

Returns true if the user has permission to BROWSE the issue

Parameters
issue the issue in question to be checked
Returns
  • true if the user has permission to BROWSE the issue.
Throws
IllegalArgumentException if the issue object is nhull