com.atlassian.jira.jql.resolver
Class SavedFilterResolver

java.lang.Object
  extended by com.atlassian.jira.jql.resolver.SavedFilterResolver

public class SavedFilterResolver
extends java.lang.Object

Looks up a saved filter via either id or name taking into account the user who is looking up the filter.

Since:
v4.0

Constructor Summary
SavedFilterResolver(SearchRequestManager searchRequestManager)
           
 
Method Summary
 java.util.List<SearchRequest> getSearchRequest(com.opensymphony.user.User searcher, java.util.List<QueryLiteral> rawValues)
          Resolves QueryLiterals into the SearchRequest objects that the user has permission to see.
 java.util.List<SearchRequest> getSearchRequestOverrideSecurity(java.util.List<QueryLiteral> rawValues)
          Resolves QueryLiterals into the SearchRequest objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SavedFilterResolver

public SavedFilterResolver(SearchRequestManager searchRequestManager)
Method Detail

getSearchRequest

public java.util.List<SearchRequest> getSearchRequest(com.opensymphony.user.User searcher,
                                                      java.util.List<QueryLiteral> rawValues)
Resolves QueryLiterals into the SearchRequest objects that the user has permission to see.

Parameters:
searcher - the user performing the search
rawValues - the query literals representing the search requests
Returns:
the list of SearchRequests that the searcher can see that correspond to the literals. Never null, and should not contain any null elements.

getSearchRequestOverrideSecurity

public java.util.List<SearchRequest> getSearchRequestOverrideSecurity(java.util.List<QueryLiteral> rawValues)
Resolves QueryLiterals into the SearchRequest objects. Permissions are ignored.

Parameters:
rawValues - the query literals representing the search requests
Returns:
the list of SearchRequests that the searcher can see that correspond to the literals. Never null, and should not contain any null elements.


Copyright © 2002-2010 Atlassian. All Rights Reserved.