public class PermissionCheckBean extends Object
Constructor and Description |
---|
PermissionCheckBean() |
PermissionCheckBean(JiraAuthenticationContext authContext,
PermissionManager permissionManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAdmin()
Tells whether the configured user (if any) has admin permission.
|
boolean |
isIssueVisible(Issue issue)
Returns true if the user has permission to
Permissions.BROWSE the issue |
public PermissionCheckBean(JiraAuthenticationContext authContext, PermissionManager permissionManager)
public PermissionCheckBean()
public boolean isIssueVisible(Issue issue)
Permissions.BROWSE
the issueissue
- the issue in question to be checkedPermissions.BROWSE
the issue.IllegalArgumentException
- if the issue object is nhullpublic boolean isAdmin()
Copyright © 2002-2017 Atlassian. All Rights Reserved.