com.atlassian.confluence.user
Class DefaultSearchEntitiesManager

java.lang.Object
  extended bycom.atlassian.confluence.user.DefaultSearchEntitiesManager
All Implemented Interfaces:
SearchEntitiesManager

public class DefaultSearchEntitiesManager
extends Object
implements SearchEntitiesManager


Field Summary
 
Fields inherited from interface com.atlassian.confluence.user.SearchEntitiesManager
MATCH_ALL, MATCH_ANY
 
Constructor Summary
DefaultSearchEntitiesManager()
           
 
Method Summary
 Query createUserQuery(List searchTerms, String operator)
           
 SearchResult findGroups(TermQuery tQuery)
           
 SearchResult findUsers(Query query)
           
 TermQuery getGroupNameTermQuery(String groupnameTerm)
           
 TermQuery getTermQuery(String term, Class termQueryClass)
          Returns an instance of TermQuery based on the passed Class.
 void setEntityQueryParser(EntityQueryParser entityQueryParser)
           
 void setUserAccessor(UserAccessor userAccessor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSearchEntitiesManager

public DefaultSearchEntitiesManager()
Method Detail

findGroups

public SearchResult findGroups(TermQuery tQuery)
                        throws EntityException
Specified by:
findGroups in interface SearchEntitiesManager
Throws:
EntityException

findUsers

public SearchResult findUsers(Query query)
                       throws EntityException
Specified by:
findUsers in interface SearchEntitiesManager
Throws:
EntityException

getTermQuery

public TermQuery getTermQuery(String term,
                              Class termQueryClass)
                       throws EntityQueryException
Returns an instance of TermQuery based on the passed Class.

For example to retrieve a UserNameTermQuery you can call: getTermQuery(usernameTerm, UserNameTermQuery.class)

Specified by:
getTermQuery in interface SearchEntitiesManager
Parameters:
term - The search term
termQueryClass - The class of the object that should be returned
Returns:
An object which implements the TermQuery interface
Throws:
EntityQueryException

getGroupNameTermQuery

public TermQuery getGroupNameTermQuery(String groupnameTerm)
                                throws EntityQueryException
Specified by:
getGroupNameTermQuery in interface SearchEntitiesManager
Throws:
EntityQueryException

createUserQuery

public Query createUserQuery(List searchTerms,
                             String operator)
                      throws EntityQueryException
Specified by:
createUserQuery in interface SearchEntitiesManager
Throws:
EntityQueryException

setEntityQueryParser

public void setEntityQueryParser(EntityQueryParser entityQueryParser)

setUserAccessor

public void setUserAccessor(UserAccessor userAccessor)


Confluence is developed by Atlassian.