Class IssueSecurityLevelResolver

java.lang.Object
com.atlassian.jira.jql.resolver.IssueSecurityLevelResolver

@InjectableComponent public class IssueSecurityLevelResolver extends Object
Resolves Issue Security Levels for the specified user.
Since:
v4.0
  • Constructor Details

  • Method Details

    • getAllSecurityLevels

      public List<IssueSecurityLevel> getAllSecurityLevels(ApplicationUser searcher)
      Returns the issue level objects that the passed user can see.
      Parameters:
      searcher - all the issues levels that the passed user can see.
      Returns:
      a list of all the issue levels that the passed user can see. The list returned may be edited by the caller.
    • getIssueSecurityLevels

      public List<IssueSecurityLevel> getIssueSecurityLevels(ApplicationUser searcher, QueryLiteral rawValue)
      Resolves GenericValues representing Issue Security Levels based on the QueryLiteral provided. Will only return security levels the specified user can see.

      Note: a null value in the returned list represents the "Empty" security level

      Parameters:
      searcher - the user performing the search.
      rawValue - the raw search input
      Returns:
      the collection of security levels; never null.
    • getIssueSecurityLevels

      public List<IssueSecurityLevel> getIssueSecurityLevels(ApplicationUser searcher, List<QueryLiteral> rawValues)
      Resolves GenericValues representing Issue Security Levels based on the QueryLiterals provided. Will only return security levels the specified user can see.

      Note: a null value in the returned list represents the "Empty" security level

      Parameters:
      searcher - the user performing the search.
      rawValues - the raw search inputs
      Returns:
      the collection of security levels; never null.
    • getIssueSecurityLevelsOverrideSecurity

      public List<IssueSecurityLevel> getIssueSecurityLevelsOverrideSecurity(List<QueryLiteral> rawValues)
      Resolves GenericValues representing Issue Security Levels based on the QueryLiterals provided. Permissions are ignored.

      Note: a null value in the returned list represents the "Empty" security level

      Parameters:
      rawValues - the raw search inputs
      Returns:
      the collection of security levels; never null.