Esempio n. 1
0
 //
 // APIs created mostly for ease of implementing UI views
 //
 @RequestMapping(method = RequestMethod.GET, value = "/{id}/ancestors-hierarchy")
 @ResponseStatus(HttpStatus.OK)
 @ResponseBody
 public StorageContainerSummary getAncestorsHierarchy(@PathVariable("id") Long containerId) {
   RequestEvent<ContainerQueryCriteria> req =
       new RequestEvent<>(new ContainerQueryCriteria(containerId));
   ResponseEvent<StorageContainerSummary> resp = storageContainerSvc.getAncestorsHierarchy(req);
   resp.throwErrorIfUnsuccessful();
   return resp.getPayload();
 }