Class IssueParentPermissionChecker
java.lang.Object
com.atlassian.jira.jql.permission.IssueParentPermissionChecker
- All Implemented Interfaces:
ClausePermissionChecker
Checks to see if subtasks are enabled or disabled to determine if the issue parent handler can be seen.
- Since:
- v4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks to see that the provided user is able to use the clause.boolean
hasPermissionToUseClause
(ApplicationUser searcher, Set<FieldLayout> fieldLayouts) Checks to see that the provided user is able to use the clause.
-
Constructor Details
-
IssueParentPermissionChecker
-
-
Method Details
-
hasPermissionToUseClause
Description copied from interface:ClausePermissionChecker
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.- Specified by:
hasPermissionToUseClause
in interfaceClausePermissionChecker
- Parameters:
user
- to check permissions against.- Returns:
- true if the user can use this clause, false otherwise.
-
hasPermissionToUseClause
Description copied from interface:ClausePermissionChecker
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).- Specified by:
hasPermissionToUseClause
in interfaceClausePermissionChecker
- Parameters:
searcher
- to check permissions against.fieldLayouts
- The field Layouts available to the given user (value ofinvalid reference
com.atlassian.jira.issue.fields.FieldManager#getVisibleFieldLayouts(User)
- Returns:
- true if the user can use this clause, false otherwise.
-