395 |
395 |
|
396 |
396 |
|
397 |
397 |
@GET
|
|
398 |
@Path("/api/organizations/{organizationid}/publications")
|
|
399 |
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
|
|
400 |
public Response fetchOrganizationPublications(@PathParam("organizationid") String organizationid,
|
|
401 |
@DefaultValue("0") @QueryParam("page") int offset,
|
|
402 |
@DefaultValue("10") @QueryParam("size") int limit,
|
|
403 |
@QueryParam("format") final String format,
|
|
404 |
@QueryParam("fq") final List<String> fieldQueries,
|
|
405 |
@Context HttpServletRequest request) {
|
|
406 |
String fullQuery = builtEntity2EntityRelationQuery(RequestResponseHandler.Entity.PUBLICATION, "relorganizationid", organizationid, fieldQueries);
|
|
407 |
return getResponseByEntity(fullQuery, RequestResponseHandler.Entity.PUBLICATION, offset, limit, format, request, false, null, fieldQueries);
|
|
408 |
}
|
|
409 |
|
|
410 |
@GET
|
|
411 |
@Path("/api/organizations/{organizationid}/publications/count")
|
|
412 |
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
|
|
413 |
public Response fetchOrganizationPublicationsCount(@PathParam("organizationid") String organizationid,
|
|
414 |
@DefaultValue("0") @QueryParam("page") int offset,
|
|
415 |
@DefaultValue("10") @QueryParam("size") int limit,
|
|
416 |
@QueryParam("format") final String format,
|
|
417 |
@QueryParam("fq") final List<String> fieldQueries,
|
|
418 |
@Context HttpServletRequest request) {
|
|
419 |
String fullQuery = builtEntity2EntityRelationQuery(RequestResponseHandler.Entity.PUBLICATION, "relorganizationid", organizationid, fieldQueries);
|
|
420 |
return getCount(request, fullQuery, format, fieldQueries);
|
|
421 |
}
|
|
422 |
|
|
423 |
@GET
|
|
424 |
@Path("/api/organizations/{organizationid}/datasets")
|
|
425 |
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
|
|
426 |
public Response fetchOrganizationDatsets(@PathParam("organizationid") String organizationid,
|
|
427 |
@DefaultValue("0") @QueryParam("page") int offset,
|
|
428 |
@DefaultValue("10") @QueryParam("size") int limit,
|
|
429 |
@QueryParam("format") final String format,
|
|
430 |
@QueryParam("fq") final List<String> fieldQueries,
|
|
431 |
@Context HttpServletRequest request) {
|
|
432 |
String fullQuery = builtEntity2EntityRelationQuery(RequestResponseHandler.Entity.DATASET, "relorganizationid", organizationid, fieldQueries);
|
|
433 |
return getResponseByEntity(fullQuery, RequestResponseHandler.Entity.DATASET, offset, limit, format, request, false, null, fieldQueries);
|
|
434 |
}
|
|
435 |
|
|
436 |
@GET
|
|
437 |
@Path("/api/organizations/{organizationid}/datasets/count")
|
|
438 |
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
|
|
439 |
public Response fetchOrganizationDatsetsCount(@PathParam("organizationid") String organizationid,
|
|
440 |
@DefaultValue("0") @QueryParam("page") int offset,
|
|
441 |
@DefaultValue("10") @QueryParam("size") int limit,
|
|
442 |
@QueryParam("format") final String format,
|
|
443 |
@QueryParam("fq") final List<String> fieldQueries,
|
|
444 |
@Context HttpServletRequest request) {
|
|
445 |
String fullQuery = builtEntity2EntityRelationQuery(RequestResponseHandler.Entity.DATASET, "relorganizationid", organizationid, fieldQueries);
|
|
446 |
return getCount(request, fullQuery, format, fieldQueries);
|
|
447 |
}
|
|
448 |
|
|
449 |
@GET
|
398 |
450 |
@Path("/api/organizations/{organizationid}/projects")
|
399 |
451 |
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
|
400 |
452 |
public Response fetchOrganizationProjects(@PathParam("organizationid") String organizationid,
|
Also adding software