Skip to content

Commit

Permalink
Merge pull request #6 from ncats/arch-starter
Browse files Browse the repository at this point in the history
fixed export
  • Loading branch information
tylerperyea authored Nov 5, 2022
2 parents eb8f627 + 15155e7 commit 8f30886
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ protected Stream<Application> filterStream(Stream<Application> stream, boolean p
return stream;
}

/*
@PreAuthorize("isAuthenticated()")
@GetGsrsRestApiMapping("/export/{etagId}/{format}")
public ResponseEntity<Object> createExport(@PathVariable("etagId") String etagId,
Expand Down Expand Up @@ -142,6 +143,7 @@ public ResponseEntity<Object> createExport(@PathVariable("etagId") String etagId
return new ResponseEntity<>(GsrsControllerUtil.enhanceWithView(p.getMetaData(), parameters), HttpStatus.OK);
}
*/

/*
public ResponseEntity<Object> createExport(@PathVariable("etagId") String etagId, @PathVariable("format") String format, @RequestParam(value = "publicOnly", required = false) Boolean publicOnlyObj, @RequestParam(value = "filename", required = false) String fileName, Principal prof, @RequestParam Map<String, String> parameters) throws Exception {
Expand Down Expand Up @@ -173,6 +175,7 @@ public ResponseEntity<Object> createExport(@PathVariable("etagId") String etagId
}
*/

/*
private Exporter<Application> getExporterFor(String extension, OutputStream pos, boolean publicOnly, Map<String, String> parameters) throws IOException {
ExporterFactory.Parameters params = this.createParamters(extension, publicOnly, parameters);
ExporterFactory<Application> factory = this.gsrsExportConfiguration.getExporterFor(this.getEntityService().getContext(), params);
Expand All @@ -182,6 +185,7 @@ private Exporter<Application> getExporterFor(String extension, OutputStream pos,
return factory.createNewExporter(pos, params);
}
}
*/

@GetGsrsRestApiMapping("/applicationhistory/{applicationId}")
public ResponseEntity<String> findApplicationHistoryByApplicationId(@PathVariable("applicationId") String applicationId) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ protected Stream<ApplicationAll> filterStream(Stream<ApplicationAll> stream, boo
return stream;
}

/*
@PreAuthorize("isAuthenticated()")
@GetGsrsRestApiMapping("/export/{etagId}/{format}")
public ResponseEntity<Object> createExport(@PathVariable("etagId") String etagId,
Expand Down Expand Up @@ -141,6 +142,8 @@ public ResponseEntity<Object> createExport(@PathVariable("etagId") String etagId
return new ResponseEntity<>(GsrsControllerUtil.enhanceWithView(p.getMetaData(), parameters), HttpStatus.OK);
}
*/

/*
public ResponseEntity<Object> createExport(@PathVariable("etagId") String etagId, @PathVariable("format") String format, @RequestParam(value = "publicOnly", required = false) Boolean publicOnlyObj, @RequestParam(value = "filename", required = false) String fileName, Principal prof, @RequestParam Map<String, String> parameters) throws Exception {
Expand Down Expand Up @@ -171,6 +174,7 @@ public ResponseEntity<Object> createExport(@PathVariable("etagId") String etagId
}
*/

/*
private Exporter<ApplicationAll> getExporterFor(String extension, OutputStream pos, boolean publicOnly, Map<String, String> parameters) throws IOException {
ExporterFactory.Parameters params = this.createParamters(extension, publicOnly, parameters);
ExporterFactory<ApplicationAll> factory = this.gsrsExportConfiguration.getExporterFor(this.getEntityService().getContext(), params);
Expand All @@ -180,6 +184,7 @@ private Exporter<ApplicationAll> getExporterFor(String extension, OutputStream p
return factory.createNewExporter(pos, params);
}
}
*/

@GetGsrsRestApiMapping("/distcenter/{substanceKey}")
public ResponseEntity<String> findCenterBySubstanceKey(@PathVariable("substanceKey") String substanceKey) throws Exception {
Expand Down

0 comments on commit 8f30886

Please sign in to comment.