com.atlassian.user.impl.hibernate.search.query
Class HibernateEntityQueryParser

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

public class HibernateEntityQueryParser
extends AbstractEntityQueryParser
implements EntityQueryParser

Handles Query objects on a HibernateRepository.

For now - boolean queries can only be performed on the same


Constructor Summary
HibernateEntityQueryParser(RepositoryIdentifier identifier, HibernateRepository repository)
           
 
Method Summary
 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.
 
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
 

Constructor Detail

HibernateEntityQueryParser

public HibernateEntityQueryParser(RepositoryIdentifier identifier,
                                  HibernateRepository repository)
Method Detail

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.