public class CrowdEntityQueryParser extends Object implements com.atlassian.user.search.query.EntityQueryParser
Constructor and Description |
---|
CrowdEntityQueryParser(com.atlassian.user.UserManager users,
com.atlassian.user.GroupManager groups,
com.atlassian.user.repository.RepositoryIdentifier id) |
CrowdEntityQueryParser(com.atlassian.user.UserManager users,
com.atlassian.user.GroupManager groups,
com.atlassian.user.repository.RepositoryIdentifier id,
com.atlassian.crowd.service.client.CrowdClient client) |
Modifier and Type | Method and Description |
---|---|
protected com.atlassian.crowd.search.query.entity.restriction.MatchMode |
changeTermQueryMatchMode(com.atlassian.user.search.query.TermQuery query) |
protected void |
ensureAllTermQueries(List<com.atlassian.user.search.query.Query> queries) |
protected List<com.atlassian.crowd.model.user.User> |
filterSingleQueryResults(List<com.atlassian.crowd.model.user.User> results,
com.atlassian.user.search.query.Query query) |
com.atlassian.user.search.SearchResult |
findGroups(com.atlassian.user.search.query.Query query)
Searches the Crowd directory server for a set of groups.
|
com.atlassian.user.search.SearchResult |
findGroups(com.atlassian.user.search.query.Query query,
com.atlassian.user.search.query.QueryContext context)
Searches the Crowd directory server for a set of groups.
|
com.atlassian.user.search.SearchResult |
findUsers(com.atlassian.user.search.query.Query query)
Searches the Crowd directory server for a set of principals.
|
com.atlassian.user.search.SearchResult |
findUsers(com.atlassian.user.search.query.Query query,
com.atlassian.user.search.query.QueryContext context)
Searches the Crowd directory server for a set of principals.
|
protected List<com.atlassian.crowd.model.user.User> |
postFilterEndsWithQueryResults(List<com.atlassian.crowd.model.user.User> results,
com.atlassian.user.search.query.Query query) |
protected com.atlassian.crowd.search.query.entity.restriction.BooleanRestriction |
queryAsBooleanRestriction(List<com.atlassian.user.search.query.TermQuery> queries,
com.atlassian.crowd.search.query.entity.restriction.BooleanRestriction.BooleanLogic logic) |
protected com.atlassian.crowd.embedded.api.SearchRestriction |
queryAsSearchRestriction(com.atlassian.user.search.query.TermQuery query) |
protected List<com.atlassian.crowd.model.group.Group> |
searchGroups(com.atlassian.user.search.query.GroupNameTermQuery query) |
protected List<com.atlassian.crowd.model.user.User> |
searchUsers(com.atlassian.user.search.query.Query query) |
public CrowdEntityQueryParser(com.atlassian.user.UserManager users, com.atlassian.user.GroupManager groups, com.atlassian.user.repository.RepositoryIdentifier id, com.atlassian.crowd.service.client.CrowdClient client)
public CrowdEntityQueryParser(com.atlassian.user.UserManager users, com.atlassian.user.GroupManager groups, com.atlassian.user.repository.RepositoryIdentifier id)
public com.atlassian.user.search.SearchResult findGroups(com.atlassian.user.search.query.Query query) throws com.atlassian.user.EntityException
findGroups
in interface com.atlassian.user.search.query.EntityQueryParser
query
- Query restrictions.com.atlassian.user.EntityException
protected List<com.atlassian.crowd.model.group.Group> searchGroups(com.atlassian.user.search.query.GroupNameTermQuery query) throws com.atlassian.user.EntityException, com.atlassian.crowd.exception.InvalidAuthenticationException, com.atlassian.crowd.exception.ApplicationPermissionException, com.atlassian.crowd.exception.OperationFailedException
com.atlassian.user.EntityException
com.atlassian.crowd.exception.InvalidAuthenticationException
com.atlassian.crowd.exception.ApplicationPermissionException
com.atlassian.crowd.exception.OperationFailedException
public com.atlassian.user.search.SearchResult findUsers(com.atlassian.user.search.query.Query query, com.atlassian.user.search.query.QueryContext context) throws com.atlassian.user.EntityException
findUsers
in interface com.atlassian.user.search.query.EntityQueryParser
query
- Query restrictions.context
- This attribute is ignored.com.atlassian.user.EntityException
public com.atlassian.user.search.SearchResult findGroups(com.atlassian.user.search.query.Query query, com.atlassian.user.search.query.QueryContext context) throws com.atlassian.user.EntityException
findGroups
in interface com.atlassian.user.search.query.EntityQueryParser
query
- Query restrictions.context
- This attribute is ignored.com.atlassian.user.EntityException
protected com.atlassian.crowd.embedded.api.SearchRestriction queryAsSearchRestriction(com.atlassian.user.search.query.TermQuery query) throws com.atlassian.user.EntityException
com.atlassian.user.EntityException
protected com.atlassian.crowd.search.query.entity.restriction.BooleanRestriction queryAsBooleanRestriction(List<com.atlassian.user.search.query.TermQuery> queries, com.atlassian.crowd.search.query.entity.restriction.BooleanRestriction.BooleanLogic logic) throws com.atlassian.user.EntityException
com.atlassian.user.EntityException
protected com.atlassian.crowd.search.query.entity.restriction.MatchMode changeTermQueryMatchMode(com.atlassian.user.search.query.TermQuery query) throws com.atlassian.user.EntityException
com.atlassian.user.EntityException
protected void ensureAllTermQueries(List<com.atlassian.user.search.query.Query> queries) throws com.atlassian.user.search.query.EntityQueryException
com.atlassian.user.search.query.EntityQueryException
protected List<com.atlassian.crowd.model.user.User> searchUsers(com.atlassian.user.search.query.Query query) throws com.atlassian.user.EntityException, com.atlassian.crowd.exception.InvalidAuthenticationException, com.atlassian.crowd.exception.ApplicationPermissionException, com.atlassian.crowd.exception.OperationFailedException
com.atlassian.user.EntityException
com.atlassian.crowd.exception.InvalidAuthenticationException
com.atlassian.crowd.exception.ApplicationPermissionException
com.atlassian.crowd.exception.OperationFailedException
protected List<com.atlassian.crowd.model.user.User> postFilterEndsWithQueryResults(List<com.atlassian.crowd.model.user.User> results, com.atlassian.user.search.query.Query query) throws com.atlassian.user.EntityException
com.atlassian.user.EntityException
protected List<com.atlassian.crowd.model.user.User> filterSingleQueryResults(List<com.atlassian.crowd.model.user.User> results, com.atlassian.user.search.query.Query query) throws com.atlassian.user.EntityException
com.atlassian.user.EntityException
public com.atlassian.user.search.SearchResult findUsers(com.atlassian.user.search.query.Query query) throws com.atlassian.user.EntityException
findUsers
in interface com.atlassian.user.search.query.EntityQueryParser
query
- Query restrictions.com.atlassian.user.EntityException
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.