@InjectableComponent public class

ProjectCategoryResolver

extends Object
java.lang.Object
   ↳ com.atlassian.jira.jql.resolver.ProjectCategoryResolver

Class Overview

A class for resolving QueryLiterals into project categories and projects.

Summary

Public Constructors
ProjectCategoryResolver(ProjectManager projectManager)
Public Methods
GenericValue getProjectCategory(QueryLiteral literal)
Collection<Project> getProjectsForCategory(QueryLiteral literal)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ProjectCategoryResolver (ProjectManager projectManager)

Public Methods

public GenericValue getProjectCategory (QueryLiteral literal)

Parameters
literal the query literal to resolve; must not be null.
Returns
  • the GenericValue representing the project category; null if the literal was empty or if the literal did not resolve successfully.

public Collection<Project> getProjectsForCategory (QueryLiteral literal)

Parameters
literal the query literal to resolve; must not be null.
Returns
  • the Projects belonging to the represented category - if the literal was empty then these will be the projects with no category set. If the literal did not resolve to a category, this will be an empty set.