public class

IssueParentPermissionChecker

extends Object
implements ClausePermissionChecker
java.lang.Object
   ↳ com.atlassian.jira.jql.permission.IssueParentPermissionChecker

Class Overview

Checks to see if subtasks are enabled or disabled to determine if the issue parent handler can be seen.

Summary

Public Constructors
IssueParentPermissionChecker(SubTaskManager subTaskManager)
Public Methods
boolean hasPermissionToUseClause(ApplicationUser searcher, Set<FieldLayout> fieldLayouts)
Checks to see that the provided user is able to use the clause.
boolean hasPermissionToUseClause(ApplicationUser user)
Checks to see that the provided user is able to use the clause.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.jql.permission.ClausePermissionChecker

Public Constructors

public IssueParentPermissionChecker (SubTaskManager subTaskManager)

Public Methods

public boolean hasPermissionToUseClause (ApplicationUser searcher, Set<FieldLayout> fieldLayouts)

Checks to see that the provided user is able to use the clause. This method provides all the FieldLayouts visible to the given user as a shortcut otherwise individual checkers can end up looking this up dozens or even hundreds of times with causes slow downs in our search (see JRADEV-15665).

Parameters
searcher to check permissions against.
fieldLayouts The field Layouts available to the given user (value of com.atlassian.jira.issue.fields.FieldManager#getVisibleFieldLayouts(User).
Returns
  • true if the user can use this clause, false otherwise.

public boolean hasPermissionToUseClause (ApplicationUser user)

Checks to see that the provided user is able to use the clause. This may be as simple as determining if the user has permission to see the field that the clause represents.

Parameters
user to check permissions against.
Returns
  • true if the user can use this clause, false otherwise.