@Internal public class

IsAdminCondition

extends Object
implements Condition
java.lang.Object
   ↳ com.atlassian.jira.plugin.webfragment.conditions.IsAdminCondition

@Internal

This class is an internal implementation detail and will change without notice.

Clients that depend on @Internal classes and interfaces can not expect to be compatible with any version other than the version they were compiled against (even minor version and milestone releases may break binary compatibility with respect to @Internal elements).

Class Overview

Checks if this user has the global admin permission. This class does not rely on passed context as UserIsAdminCondition does, but retrieves logged user from JiraAuthenticationContext; This is temporary workaround to make this condition working with dashboard-item, as currently dashboard-plugin does not pass correct context parameters. This class will be removed once https://ecosystem.atlassian.net/browse/AG-1466 is resolved.

Summary

Public Constructors
IsAdminCondition(JiraAuthenticationContext authenticationContext, GlobalPermissionManager permissionManager)
Public Methods
void init(Map<StringString> params)
boolean shouldDisplay(Map<StringObject> context)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.web.Condition

Public Constructors

public IsAdminCondition (JiraAuthenticationContext authenticationContext, GlobalPermissionManager permissionManager)

Public Methods

public void init (Map<StringString> params)

public boolean shouldDisplay (Map<StringObject> context)