public class

UserIsSysAdminCondition

extends AbstractJiraCondition
java.lang.Object
   ↳ com.atlassian.jira.plugin.webfragment.conditions.AbstractJiraCondition
     ↳ com.atlassian.jira.plugin.webfragment.conditions.UserIsSysAdminCondition

Class Overview

Will return shouldDisplay of true if the user has the SYSTEM_ADMIN global permission.

Summary

Public Constructors
UserIsSysAdminCondition(PermissionManager permissionManager)
Public Methods
boolean shouldDisplay(User user, JiraHelper jiraHelper)
Returns true if the user is logged in and has system admin rights.
[Expand]
Inherited Methods
From class com.atlassian.jira.plugin.webfragment.conditions.AbstractJiraCondition
From class java.lang.Object
From interface com.atlassian.plugin.web.Condition

Public Constructors

public UserIsSysAdminCondition (PermissionManager permissionManager)

Public Methods

public boolean shouldDisplay (User user, JiraHelper jiraHelper)

Returns true if the user is logged in and has system admin rights.

Parameters
user current user
jiraHelper JIRA helper - not used
Returns