com.atlassian.greenhopper.service.query
Class QueryServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.service.query.QueryServiceImpl
All Implemented Interfaces:
QueryService

@Service
public class QueryServiceImpl
extends java.lang.Object
implements QueryService


Constructor Summary
QueryServiceImpl()
           
 
Method Summary
 java.util.List<com.atlassian.jira.project.Project> getProjectsInProjectBasedQuery(com.atlassian.crowd.embedded.api.User user, com.atlassian.query.Query projectBasedQuery)
          Return the projects which are included in this query.
 boolean isQueryProjectBased(com.atlassian.query.Query query)
          Determine whether this query is "project based"; i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryServiceImpl

public QueryServiceImpl()
Method Detail

isQueryProjectBased

public boolean isQueryProjectBased(@Nullable
                                   com.atlassian.query.Query query)
Description copied from interface: QueryService
Determine whether this query is "project based"; i.e. whether this query only contains project clauses, possibly combined with the OR operator.

Specified by:
isQueryProjectBased in interface QueryService
Parameters:
query - the query; may be null
Returns:
the result

getProjectsInProjectBasedQuery

public java.util.List<com.atlassian.jira.project.Project> getProjectsInProjectBasedQuery(com.atlassian.crowd.embedded.api.User user,
                                                                                         @NotNull
                                                                                         com.atlassian.query.Query projectBasedQuery)
Description copied from interface: QueryService
Return the projects which are included in this query. This does not execute a search - it instead uses QueryContext information.

Specified by:
getProjectsInProjectBasedQuery in interface QueryService
Parameters:
user - the user performing the query
projectBasedQuery - the query; must not be null and must be a project-based query
Returns:
the IDs


Copyright © 2007-2012 Atlassian. All Rights Reserved.