com.atlassian.jira.jql.resolver
Class SavedFilterResolver

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

public class SavedFilterResolver
extends 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
 List<SearchRequest> getSearchRequest(com.atlassian.crowd.embedded.api.User searcher, List<QueryLiteral> rawValues)
          Resolves QueryLiterals into the SearchRequest objects that the user has permission to see.
 List<SearchRequest> getSearchRequestOverrideSecurity(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 List<SearchRequest> getSearchRequest(com.atlassian.crowd.embedded.api.User searcher,
                                            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 List<SearchRequest> getSearchRequestOverrideSecurity(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-2012 Atlassian. All Rights Reserved.