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()
findGroupsAsList
public List findGroupsAsList(TermQuery tQuery)
throws EntityException
- Description copied from interface:
SearchEntitiesManager
- Find all groups matching a particular query.
- Specified by:
findGroupsAsList in interface SearchEntitiesManager
- Parameters:
tQuery - the query to search on
- Throws:
EntityException
findGroupsAsList
public List findGroupsAsList(TermQuery tQuery,
boolean filterGroups)
throws EntityException
- Description copied from interface:
SearchEntitiesManager
- Find the groups that match a particular query, optionally filtering out groups not visible to the current
user. The filterGroups argument will only make a difference if the Confluence server is running in shared
mode.
- Specified by:
findGroupsAsList in interface SearchEntitiesManager
- Parameters:
tQuery - the query to search onfilterGroups - true will filter out groups the current user is not permitted to see
- Throws:
EntityException
findUsersAsList
public List<User> findUsersAsList(Query userQuery)
throws EntityException
- Finds users according to the specified query.
- Specified by:
findUsersAsList in interface SearchEntitiesManager
- Parameters:
userQuery - the user query
- Returns:
- a list of users. No two users with the same name (that is,
Entity.getName() will be returned.
- 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 queries,
String operator)
throws EntityQueryException
- Specified by:
createUserQuery in interface SearchEntitiesManager
- Throws:
EntityQueryException
setEntityQueryParser
public void setEntityQueryParser(EntityQueryParser entityQueryParser)
setUserAccessor
public void setUserAccessor(UserAccessor userAccessor)