public interface

SecurityType

implements SchemeType
com.atlassian.jira.security.type.SecurityType
Known Indirect Subclasses

Summary

Public Methods
String getArgumentDisplay(String argument)
Query getQuery(ApplicationUser searcher, Project project, IssueSecurityLevel securityLevel, String parameter)
Returns a query based on security level and the project passed in.
Query getQuery(ApplicationUser searcher, Project project, String parameter)
Set<ApplicationUser> getUsers(PermissionContext permissionContext, String argument)
Returns a list of ApplicationUsers represented by a security type instance.
[Expand]
Inherited Methods
From interface com.atlassian.jira.scheme.SchemeType

Public Methods

public String getArgumentDisplay (String argument)

public Query getQuery (ApplicationUser searcher, Project project, IssueSecurityLevel securityLevel, String parameter)

Returns a query based on security level and the project passed in. This may be required in particular for role based issue security levels. (see JRA-12739)

Parameters
searcher The searcher conducting the search
project The project for which we're constructing a query
securityLevel The security level for which we are constructing the query
parameter Parameter identifying user related field (reporter, assignee, etc)
Returns
  • A lucene permissions query

public Query getQuery (ApplicationUser searcher, Project project, String parameter)

public Set<ApplicationUser> getUsers (PermissionContext permissionContext, String argument)

Returns a list of ApplicationUsers represented by a security type instance. The collection must not contain any nulls.

Parameters
permissionContext The current issue and project
argument Instance value, eg. a group name, user name, custom field id
Returns
Throws
IllegalArgumentException if argument is invalid for this type.