|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.web.bean.PermissionCheckBean
public class PermissionCheckBean
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.
Constructor Summary | |
---|---|
PermissionCheckBean()
|
|
PermissionCheckBean(JiraAuthenticationContext authContext,
PermissionManager permissionManager)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PermissionCheckBean(JiraAuthenticationContext authContext, PermissionManager permissionManager)
public PermissionCheckBean()
Method Detail |
---|
public boolean isIssueVisible(Issue issue)
Permissions.BROWSE
the issue
issue
- the issue in question to be checked
Permissions.BROWSE
the issue.
java.lang.IllegalArgumentException
- if the issue object is nhullpublic boolean isAdmin()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |