@NonInjectableComponent public class FieldClausePermissionChecker extends Object implements ClausePermissionChecker
Modifier and Type | Class and Description |
---|---|
static class |
FieldClausePermissionChecker.DefaultFactory
This is a factory so that we don't have a circular dependency on the Field manager.
|
static interface |
FieldClausePermissionChecker.Factory |
Constructor and Description |
---|
FieldClausePermissionChecker(Field field,
FieldManager fieldManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasPermissionToUseClause(ApplicationUser user)
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.
|
public FieldClausePermissionChecker(Field field, FieldManager fieldManager)
public boolean hasPermissionToUseClause(ApplicationUser user)
ClausePermissionChecker
hasPermissionToUseClause
in interface ClausePermissionChecker
user
- to check permissions against.public boolean hasPermissionToUseClause(ApplicationUser searcher, Set<FieldLayout> fieldLayouts)
ClausePermissionChecker
hasPermissionToUseClause
in interface ClausePermissionChecker
searcher
- to check permissions against.fieldLayouts
- The field Layouts available to the given user (value of com.atlassian.jira.issue.fields.FieldManager#getVisibleFieldLayouts(User)
.Copyright © 2002-2019 Atlassian. All Rights Reserved.