Class UserIsAdminCondition
java.lang.Object
com.atlassian.jira.plugin.webfragment.conditions.AbstractWebCondition
com.atlassian.jira.plugin.webfragment.conditions.UserIsAdminCondition
- All Implemented Interfaces:
com.atlassian.plugin.web.api.baseconditions.BaseCondition
,com.atlassian.plugin.web.Condition
- Direct Known Subclasses:
ArchivingEnabledCondition
Checks if this user has the global admin permission. This was previously implemented in jira-core but has been moved
into the API for 6.1.
- Since:
- 6.1
-
Constructor Summary
ModifierConstructorDescriptionUserIsAdminCondition
(GlobalPermissionManager permissionManager) protected
UserIsAdminCondition
(PermissionManager permissionManager) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
shouldDisplay
(ApplicationUser user, JiraHelper jiraHelper) Methods inherited from class com.atlassian.jira.plugin.webfragment.conditions.AbstractWebCondition
getApplicationUser, init, shouldDisplay
-
Constructor Details
-
UserIsAdminCondition
-
UserIsAdminCondition
Deprecated.UseUserIsAdminCondition(GlobalPermissionManager)
instead. Since v7.1.This needs to be left here as it's used by the jira-projects-plugin.
-
-
Method Details
-
shouldDisplay
- Specified by:
shouldDisplay
in classAbstractWebCondition
-
UserIsAdminCondition(GlobalPermissionManager)
instead.