@Named public class SearchController extends AbstractResourceController
| Constructor and Description |
|---|
SearchController(ApplicationService applicationService,
CqlQueryParser cqlQueryParser,
AuthenticatedApplicationHolder authenticatedApplicationHolder) |
| Modifier and Type | Method and Description |
|---|---|
SearchRestriction |
fromCqlSearchRestriction(String cqlSearchRestriction) |
GroupEntityList |
searchGroups(SearchRestrictionEntity searchRestrictionEntity,
int maxResults,
int startIndex,
boolean expandGroup,
boolean expandAttributes,
URI baseUri)
Searches for groups satisfying the restriction.
|
GroupEntityList |
searchGroups(SearchRestriction searchRestriction,
int maxResults,
int startIndex,
boolean expandGroup,
boolean expandAttributes,
URI baseUri)
Searches for groups satisfying the restriction.
|
GroupEntityList |
searchGroups(String cqlSearchRestriction,
int maxResults,
int startIndex,
boolean expandGroup,
boolean expandAttributes,
URI baseUri)
Searches for groups satisfying the restriction.
|
UserEntityList |
searchUsers(SearchRestriction searchRestriction,
int maxResults,
int startIndex,
boolean expandUser,
boolean expandAttributes,
URI baseUri)
Searches for users satisfying the restriction.
|
getAuthenticatedApplication@Inject public SearchController(ApplicationService applicationService, CqlQueryParser cqlQueryParser, AuthenticatedApplicationHolder authenticatedApplicationHolder)
public GroupEntityList searchGroups(SearchRestrictionEntity searchRestrictionEntity, int maxResults, int startIndex, boolean expandGroup, boolean expandAttributes, URI baseUri)
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 GroupEntityList searchGroups(String cqlSearchRestriction, int maxResults, int startIndex, boolean expandGroup, boolean expandAttributes, URI baseUri)
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 SearchRestriction fromCqlSearchRestriction(String cqlSearchRestriction)
public GroupEntityList searchGroups(SearchRestriction searchRestriction, int maxResults, int startIndex, boolean expandGroup, boolean expandAttributes, URI baseUri)
searchRestriction - 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(SearchRestriction searchRestriction, int maxResults, int startIndex, boolean expandUser, boolean expandAttributes, URI baseUri)
searchRestriction - 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 serviceCopyright © 2021 Atlassian. All rights reserved.