@Path(value="search") @Consumes(value={"application/xml","application/json"}) @Produces(value={"application/xml","application/json"}) public class SearchResource extends AbstractResource
request, uriInfo
Constructor and Description |
---|
SearchResource(SearchController searchController) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
search(String entityType,
int maxResults,
int startIndex,
SearchRestrictionEntity searchRestriction)
Searches for entities of entity-type (either 'user' or 'group') satisfying the given search restriction.
|
javax.ws.rs.core.Response |
searchByCql(String entityType,
int maxResults,
int startIndex,
String cqlSearchRestriction)
Searches for entities of entity-type (either 'user' or 'group') with the specified search restriction
(as Crowd Query Language).
|
getApplicationName, getBaseUri, setApplicationName, setRequest, setUriInfo
public SearchResource(SearchController searchController)
@POST public javax.ws.rs.core.Response search(@QueryParam(value="entity-type") String entityType, @DefaultValue(value="1000") @QueryParam(value="max-results") int maxResults, @DefaultValue(value="0") @QueryParam(value="start-index") int startIndex, SearchRestrictionEntity searchRestriction) throws DirectoryNotFoundException, OperationFailedException
entityType
- type of the entity to searchmaxResults
- maximum number of results returnedstartIndex
- starting index of the resultssearchRestriction
- restriction entities must satisfyDirectoryNotFoundException
OperationFailedException
@GET public javax.ws.rs.core.Response searchByCql(@QueryParam(value="entity-type") String entityType, @DefaultValue(value="1000") @QueryParam(value="max-results") int maxResults, @DefaultValue(value="0") @QueryParam(value="start-index") int startIndex, @DefaultValue(value="") @QueryParam(value="restriction") String cqlSearchRestriction) throws DirectoryNotFoundException, OperationFailedException
entityType
- type of the entity to searchmaxResults
- maximum number of results returnedstartIndex
- starting index of the resultscqlSearchRestriction
- restriction entities must satisfy in the Crowd Query LanguageDirectoryNotFoundException
OperationFailedException
Copyright © 2021 Atlassian. All rights reserved.
View cookie preferences