com.atlassian.confluence.user
Class DefaultSearchEntitiesManager
java.lang.Object
com.atlassian.confluence.user.DefaultSearchEntitiesManager
- All Implemented Interfaces:
- SearchEntitiesManager
- public class DefaultSearchEntitiesManager
- extends Object
- implements SearchEntitiesManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSearchEntitiesManager
public DefaultSearchEntitiesManager()
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 termtermQueryClass
- 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)