com.atlassian.user.search.query
Class AbstractEntityQueryParser

java.lang.Object
  extended bycom.atlassian.user.search.query.AbstractEntityQueryParser
All Implemented Interfaces:
EntityQueryParser
Direct Known Subclasses:
DefaultEntityQueryParser, HibernateEntityQueryParser

public abstract class AbstractEntityQueryParser
extends java.lang.Object
implements EntityQueryParser


Constructor Summary
AbstractEntityQueryParser()
           
 
Method Summary
protected  Query identifyDefiningQuery(BooleanQuery q)
          The 'defining query' lets us know which EntityClass we are querying.
protected  java.lang.String matchQueryToQueryType(Query query1)
           
protected  void validateBooleanToQueryType(BooleanQuery query, java.lang.String queryClassName)
          Ensures that the BooleanQuery combines queries of a singular type UserQuery, GroupQuery, or MembershipQuery.
protected  void validateQuery(Query query)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.user.search.query.EntityQueryParser
findGroups, findGroups, findUsers, findUsers
 

Constructor Detail

AbstractEntityQueryParser

public AbstractEntityQueryParser()
Method Detail

validateQuery

protected void validateQuery(Query query)
                      throws EntityQueryException
Throws:
EntityQueryException

validateBooleanToQueryType

protected void validateBooleanToQueryType(BooleanQuery query,
                                          java.lang.String queryClassName)
                                   throws EntityQueryException
Ensures that the BooleanQuery combines queries of a singular type UserQuery, GroupQuery, or MembershipQuery.

Throws:
EntityQueryException

matchQueryToQueryType

protected java.lang.String matchQueryToQueryType(Query query1)

identifyDefiningQuery

protected Query identifyDefiningQuery(BooleanQuery q)
The 'defining query' lets us know which EntityClass we are querying.



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