public class DefaultSearchEntitiesManager extends Object implements SearchEntitiesManager
MATCH_ALL, MATCH_ANY
Constructor and Description |
---|
DefaultSearchEntitiesManager() |
Modifier and Type | Method and Description |
---|---|
com.atlassian.user.search.query.Query |
createUserQuery(List queries,
String operator) |
List |
findGroupsAsList(com.atlassian.user.search.query.TermQuery tQuery)
Find all groups matching a particular query.
|
List |
findGroupsAsList(com.atlassian.user.search.query.TermQuery tQuery,
boolean filterGroups)
Find the groups that match a particular query, optionally filtering out groups not visible to the current
user.
|
List<com.atlassian.user.User> |
findUsersAsList(com.atlassian.user.search.query.Query userQuery)
Finds users according to the specified query.
|
com.atlassian.user.search.query.TermQuery |
getGroupNameTermQuery(String groupnameTerm) |
com.atlassian.user.search.query.TermQuery |
getTermQuery(String term,
Class termQueryClass)
Returns an instance of TermQuery based on the passed Class.
|
void |
setEntityQueryParser(com.atlassian.user.search.query.EntityQueryParser entityQueryParser) |
void |
setUserAccessor(UserAccessor userAccessor) |
public List findGroupsAsList(com.atlassian.user.search.query.TermQuery tQuery) throws com.atlassian.user.EntityException
SearchEntitiesManager
findGroupsAsList
in interface SearchEntitiesManager
tQuery
- the query to search oncom.atlassian.user.EntityException
public List findGroupsAsList(com.atlassian.user.search.query.TermQuery tQuery, boolean filterGroups) throws com.atlassian.user.EntityException
SearchEntitiesManager
findGroupsAsList
in interface SearchEntitiesManager
tQuery
- the query to search onfilterGroups
- true will filter out groups the current user is not permitted to seecom.atlassian.user.EntityException
public List<com.atlassian.user.User> findUsersAsList(com.atlassian.user.search.query.Query userQuery) throws com.atlassian.user.EntityException
findUsersAsList
in interface SearchEntitiesManager
userQuery
- the user queryEntity.getName()
will be returned.com.atlassian.user.EntityException
public com.atlassian.user.search.query.TermQuery getTermQuery(String term, Class termQueryClass) throws com.atlassian.user.search.query.EntityQueryException
getTermQuery
in interface SearchEntitiesManager
term
- The search termtermQueryClass
- The class of the object that should be returnedcom.atlassian.user.search.query.EntityQueryException
public com.atlassian.user.search.query.TermQuery getGroupNameTermQuery(String groupnameTerm) throws com.atlassian.user.search.query.EntityQueryException
getGroupNameTermQuery
in interface SearchEntitiesManager
com.atlassian.user.search.query.EntityQueryException
public com.atlassian.user.search.query.Query createUserQuery(List queries, String operator) throws com.atlassian.user.search.query.EntityQueryException
createUserQuery
in interface SearchEntitiesManager
com.atlassian.user.search.query.EntityQueryException
public void setEntityQueryParser(com.atlassian.user.search.query.EntityQueryParser entityQueryParser)
public void setUserAccessor(UserAccessor userAccessor)
Copyright © 2003–2015 Atlassian. All rights reserved.