com.atlassian.user.search.query
Class DefaultEntityQueryParser

java.lang.Object
  extended bycom.atlassian.user.search.query.AbstractEntityQueryParser
      extended bycom.atlassian.user.search.query.DefaultEntityQueryParser
All Implemented Interfaces:
EntityQueryParser

public class DefaultEntityQueryParser
extends AbstractEntityQueryParser
implements EntityQueryParser


Field Summary
protected  java.lang.reflect.Method emailMethod
           
protected  java.lang.reflect.Method entityNameMethod
           
protected  java.lang.reflect.Method fullnameMethod
           
protected  GroupManager groupManager
           
protected  RepositoryIdentifier repository
           
protected  UserManager userManager
           
 
Constructor Summary
DefaultEntityQueryParser(RepositoryIdentifier repo, UserManager userManager, GroupManager groupManager)
           
 
Method Summary
 Pager find(Query query)
           
 SearchResult findGroups(Query query)
          Generates a SearchResult object holding results for each RepositoryIdentifier the the entityQueryParser can access..
 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 holding results for each RepositoryIdentifier the the entityQueryParser can access..
 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.
 void init(java.util.HashMap args)
           
protected  Pager parseQuery(java.lang.reflect.Method userMethod, TermQuery q, Pager data)
           
 
Methods inherited from class com.atlassian.user.search.query.AbstractEntityQueryParser
identifyDefiningQuery, matchQueryToQueryType, validateBooleanToQueryType, validateQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userManager

protected UserManager userManager

groupManager

protected GroupManager groupManager

repository

protected RepositoryIdentifier repository

entityNameMethod

protected java.lang.reflect.Method entityNameMethod

emailMethod

protected java.lang.reflect.Method emailMethod

fullnameMethod

protected java.lang.reflect.Method fullnameMethod
Constructor Detail

DefaultEntityQueryParser

public DefaultEntityQueryParser(RepositoryIdentifier repo,
                                UserManager userManager,
                                GroupManager groupManager)
Method Detail

init

public void init(java.util.HashMap args)
          throws ConfigurationException
Throws:
ConfigurationException

parseQuery

protected Pager parseQuery(java.lang.reflect.Method userMethod,
                           TermQuery q,
                           Pager data)
                    throws java.lang.IllegalAccessException,
                           java.lang.reflect.InvocationTargetException
Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

find

public Pager find(Query query)
           throws EntityException
Throws:
EntityException

findUsers

public SearchResult findUsers(Query query)
                       throws EntityException
Description copied from interface: EntityQueryParser
Generates a SearchResult object holding results for each RepositoryIdentifier the the entityQueryParser can access..

Specified by:
findUsers in interface EntityQueryParser
Throws:
EntityException

findGroups

public SearchResult findGroups(Query query)
                        throws EntityException
Description copied from interface: EntityQueryParser
Generates a SearchResult object holding results for each RepositoryIdentifier the the entityQueryParser can access..

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
Returns:
returns the search result or null if this entity query parser is out of scope of the context
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-2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.