@Deprecated @PublicSpi public abstract class


extends AbstractJiraCondition
   ↳ com.atlassian.jira.plugin.webfragment.conditions.AbstractJiraCondition
     ↳ com.atlassian.jira.plugin.webfragment.conditions.AbstractJiraPermissionCondition

This class is deprecated.
Use AbstractPermissionCondition instead. Since v6.0. This class was previously in jira-core but has been moved into the API (and deprecated) to protect third-party plugins that were using it. See JRA-30983 and JRA-32058.


This class is designed for plugins to implement.

Clients of @PublicSpi can expect that programs compiled against a given version will remain binary compatible with later versions of the @PublicSpi as per each product's API policy (clients should refer to each product's API policy for the exact guarantee -- usually binary compatibility is guaranteed at least across minor versions).

Note: @PublicSpi interfaces and classes are specifically designed to be implemented/extended by clients. Hence, the guarantee of binary compatibility is different to that of @PublicApi elements (if an element is both @PublicApi and @PublicSpi, both guarantees apply).

Class Overview

Convenient abstraction to initialise conditions that require the PermissionManager and accept "permission" param.

The permission param is converted using getType(String) and its value is set in permission


protected int permission
protected PermissionManager permissionManager
Public Constructors
AbstractJiraPermissionCondition(PermissionManager permissionManager)
Public Methods
void init(Map params)
abstract boolean shouldDisplay(ApplicationUser user, JiraHelper jiraHelper)
Inherited Methods
From class com.atlassian.jira.plugin.webfragment.conditions.AbstractJiraCondition
From class java.lang.Object
From interface com.atlassian.plugin.web.Condition


protected int permission

protected PermissionManager permissionManager

Public Constructors

public AbstractJiraPermissionCondition (PermissionManager permissionManager)

Public Methods

public void init (Map params)

public abstract boolean shouldDisplay (ApplicationUser user, JiraHelper jiraHelper)