com.atlassian.jira.jql.resolver
Class ProjectCategoryResolver

java.lang.Object
  extended by 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 Summary
ProjectCategoryResolver(ProjectManager projectManager)
           
 
Method Summary
 org.ofbiz.core.entity.GenericValue getProjectCategory(QueryLiteral literal)
           
 Collection<Project> getProjectsForCategory(QueryLiteral literal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectCategoryResolver

public ProjectCategoryResolver(ProjectManager projectManager)
Method Detail

getProjectCategory

public org.ofbiz.core.entity.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.

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.


Copyright © 2002-2009 Atlassian. All Rights Reserved.