Class ProjectCategoryResolver

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

@InjectableComponent public class ProjectCategoryResolver extends Object
A class for resolving QueryLiterals into project categories and projects.
Since:
v4.0
  • Constructor Details

    • ProjectCategoryResolver

      public ProjectCategoryResolver(ProjectManager projectManager)
  • Method Details

    • getProjectCategory

      public ProjectCategory 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.
    • getProjectsForCategory

      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.