com.atlassian.jira.plugin.webfragment.conditions
Class UserIsSysAdminCondition

java.lang.Object
  extended by com.atlassian.jira.plugin.webfragment.conditions.AbstractJiraCondition
      extended by com.atlassian.jira.plugin.webfragment.conditions.UserIsSysAdminCondition
All Implemented Interfaces:
com.atlassian.plugin.web.Condition

public class UserIsSysAdminCondition
extends AbstractJiraCondition

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

Since:
v3.12

Constructor Summary
UserIsSysAdminCondition(PermissionManager permissionManager)
           
 
Method Summary
 boolean shouldDisplay(User user, JiraHelper jiraHelper)
          Returns true if the user is logged in and has system admin rights.
 
Methods inherited from class com.atlassian.jira.plugin.webfragment.conditions.AbstractJiraCondition
init, shouldDisplay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserIsSysAdminCondition

public UserIsSysAdminCondition(PermissionManager permissionManager)
Method Detail

shouldDisplay

public boolean shouldDisplay(User user,
                             JiraHelper jiraHelper)
Returns true if the user is logged in and has system admin rights.

Specified by:
shouldDisplay in class AbstractJiraCondition
Parameters:
user - current user
jiraHelper - JIRA helper - not used
Returns:
true if user has the Permissions.SYSTEM_ADMIN permission.


Copyright © 2002-2008 Atlassian. All Rights Reserved.