java.lang.Object
com.atlassian.crowd.plugin.rest.service.resource.AbstractResource
com.atlassian.crowd.plugin.rest.service.resource.usermanagement.SearchResource

@Path("search") @Consumes({"application/xml","application/json"}) @Produces({"application/xml","application/json"}) public class SearchResource extends AbstractResource
Search resource.
  • Constructor Details

    • SearchResource

      @Inject public SearchResource(SearchController searchController)
  • Method Details

    • search

      @POST public javax.ws.rs.core.Response search(@QueryParam("entity-type") String entityType, @QueryParam("max-results") @DefaultValue("1000") int maxResults, @QueryParam("start-index") @DefaultValue("0") int startIndex, SearchRestrictionEntity searchRestriction) throws DirectoryNotFoundException, OperationFailedException
      Throws:
      DirectoryNotFoundException
      OperationFailedException
    • searchByCql

      @GET public javax.ws.rs.core.Response searchByCql(@QueryParam("entity-type") String entityType, @DefaultValue("1000") @QueryParam("max-results") int maxResults, @DefaultValue("0") @QueryParam("start-index") int startIndex, @DefaultValue("") @QueryParam("restriction") String cqlSearchRestriction)