com.atlassian.user.impl.delegation.search.query
Class DelegatingEntityQueryParser

java.lang.Object
  extended bycom.atlassian.user.impl.delegation.search.query.DelegatingEntityQueryParser
All Implemented Interfaces:
EntityQueryParser

public class DelegatingEntityQueryParser
extends java.lang.Object
implements EntityQueryParser


Constructor Summary
DelegatingEntityQueryParser(java.util.List entityQueryParsers)
           
 
Method Summary
 SearchResult findGroups(Query query)
          Generates a SearchResult object for each RepositoryIdentifier the entityQueryParser can search.
 SearchResult findGroups(Query query, QueryContext context)
          Generates a SearchResult object holding results for each RepositoryIdentifier the entityQueryParser has been instructed, via a QueryContext to search.
 SearchResult findUsers(Query query)
          Generates a SearchResult object for each RepositoryIdentifier the entityQueryParser can search.
 SearchResult findUsers(Query query, QueryContext context)
          Generates a SearchResult object holding results for each RepositoryIdentifier the entityQueryParser has been instructed, via a QueryContext to search.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingEntityQueryParser

public DelegatingEntityQueryParser(java.util.List entityQueryParsers)
Method Detail

findUsers

public SearchResult findUsers(Query query)
                       throws EntityException
Generates a SearchResult object for each RepositoryIdentifier the entityQueryParser can search. These are grouped in an array and returned.

Thus, if the entityQueryParser only knows about one configuration, the array will either have a size of 0 (no sucesses) or 1.

Specified by:
findUsers in interface EntityQueryParser
Throws:
EntityException

findGroups

public SearchResult findGroups(Query query)
                        throws EntityException
Generates a SearchResult object for each RepositoryIdentifier the entityQueryParser can search. These are grouped in an array and returned.

Thus, if the entityQueryParser only knows about one configuration, the array will either have a size of 0 (no sucesses) or 1.

Specified by:
findGroups in interface EntityQueryParser
Throws:
EntityException

findUsers

public SearchResult findUsers(Query query,
                              QueryContext context)
                       throws EntityException
Description copied from interface: EntityQueryParser
Generates a SearchResult object holding results for each RepositoryIdentifier the entityQueryParser has been instructed, via a QueryContext to search.

Specified by:
findUsers in interface EntityQueryParser
Throws:
EntityException

findGroups

public SearchResult findGroups(Query query,
                               QueryContext context)
                        throws EntityException
Description copied from interface: EntityQueryParser
Generates a SearchResult object holding results for each RepositoryIdentifier the entityQueryParser has been instructed, via a QueryContext to search.

Specified by:
findGroups in interface EntityQueryParser
Throws:
EntityException


Copyright © 2005-2007 Atlassian Software Systems Pty Ltd. All Rights Reserved.