com.atlassian.jira.jql.resolver
Class ProjectCategoryResolver
java.lang.Object
com.atlassian.jira.jql.resolver.ProjectCategoryResolver
@InjectableComponent
public class ProjectCategoryResolver
- extends Object
A class for resolving QueryLiteral
s into project categories and projects.
- Since:
- v4.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectCategoryResolver
public ProjectCategoryResolver(ProjectManager projectManager)
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
Project
s 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-2012 Atlassian. All Rights Reserved.