public class SearchController extends AbstractResourceController
applicationManager, applicationService
Constructor and Description |
---|
SearchController(ApplicationService applicationService,
ApplicationManager applicationManager,
CqlQueryParser cqlQueryParser) |
Modifier and Type | Method and Description |
---|---|
GroupEntityList |
searchGroups(String applicationName,
SearchRestrictionEntity searchRestrictionEntity,
int maxResults,
int startIndex,
boolean expandGroup,
boolean expandAttributes,
URI baseUri)
Searches for groups satisfying the restriction.
|
GroupEntityList |
searchGroups(String applicationName,
String cqlSearchRestriction,
int maxResults,
int startIndex,
boolean expandGroup,
boolean expandAttributes,
URI baseUri)
Searches for groups satisfying the restriction.
|
UserEntityList |
searchUsers(String applicationName,
SearchRestrictionEntity searchRestrictionEntity,
int maxResults,
int startIndex,
boolean expandUser,
boolean expandAttributes,
URI baseUri)
Searches for users satisfying the restriction.
|
UserEntityList |
searchUsers(String applicationName,
String cqlSearchRestriction,
int maxResults,
int startIndex,
boolean expandUser,
boolean expandAttributes,
URI baseUri)
Searches for users satisfying the restriction.
|
getApplication
public SearchController(ApplicationService applicationService, ApplicationManager applicationManager, CqlQueryParser cqlQueryParser)
public GroupEntityList searchGroups(String applicationName, SearchRestrictionEntity searchRestrictionEntity, int maxResults, int startIndex, boolean expandGroup, boolean expandAttributes, URI baseUri)
applicationName
- name of the application.searchRestrictionEntity
- criteria for a group to be returnedmaxResults
- maximum number of results to returnstartIndex
- starting index of the resultexpandGroup
- set to true if the group details should be expanded.expandAttributes
- set to true if the group's attributes should be expanded - requires that group details are expanded.baseUri
- Base URI of the REST servicepublic UserEntityList searchUsers(String applicationName, SearchRestrictionEntity searchRestrictionEntity, int maxResults, int startIndex, boolean expandUser, boolean expandAttributes, URI baseUri)
applicationName
- name of the application.searchRestrictionEntity
- criteria for a user to be returnedmaxResults
- maximum number of results to returnstartIndex
- starting index of the resultexpandUser
- set to true if the user details should be expanded.expandAttributes
- set to true if the user's attributes should be expanded - requires that user details are expanded.baseUri
- Base URI of the REST servicepublic GroupEntityList searchGroups(String applicationName, String cqlSearchRestriction, int maxResults, int startIndex, boolean expandGroup, boolean expandAttributes, URI baseUri)
applicationName
- name of the application.cqlSearchRestriction
- criteria for a group to be returned in the Crowd Query LanguagemaxResults
- maximum number of results to returnstartIndex
- starting index of the resultexpandGroup
- set to true if the group details should be expanded.expandAttributes
- set to true if the group's attributes should be expanded - requires that group details are expanded.baseUri
- Base URI of the REST servicepublic UserEntityList searchUsers(String applicationName, String cqlSearchRestriction, int maxResults, int startIndex, boolean expandUser, boolean expandAttributes, URI baseUri)
applicationName
- name of the application.cqlSearchRestriction
- criteria for a user to be returned in the Crowd Query LanguagemaxResults
- maximum number of results to returnstartIndex
- starting index of the resultexpandUser
- set to true if the user details should be expanded.expandAttributes
- set to true if the user's attributes should be expanded - requires that user details are expanded.baseUri
- Base URI of the REST serviceCopyright © 2017 Atlassian. All rights reserved.